linux/drivers/scsi/pm8001
Pan Bian bc1371c181 scsi: pm8001: fix double free in pm8001_pci_probe
In function pm8001_pci_probe(), on errors that the control flow jumps to
label err_out_ha_free, function pm8001_free() is called. In pm8001_free(),
scsi_host_put() is called to release shost, which keeps the return value
of scsi_host_alloc(). After pm8001_free() returns, kfree() is called to
free shost again, resulting in a double free bug. This patch removes
scsi_host_put() from pm8001_free() and explicitly calls scsi_host_put()
to release Scsi_Host in need.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Reviewed-by: Jack Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-08-10 19:55:35 -04:00
..
Makefile
pm80xx_hwi.c pm80xx: do not examine registers for iButton feature if ATTO adapter 2015-11-02 23:39:35 -05:00
pm80xx_hwi.h pm80xx: Handling Invalid SSP Response frame 2015-08-26 17:18:31 -07:00
pm8001_chips.h
pm8001_ctl.c pm8001: Update nvmd response data to request buffer 2014-09-16 09:09:48 -07:00
pm8001_ctl.h [SCSI] pm80xx: Firmware logging support. 2013-10-25 09:58:16 +01:00
pm8001_defs.h pm80xx: add support for PMC Sierra 8070 and PMC Sierra 8072 SAS controllers 2015-11-02 23:34:12 -05:00
pm8001_hwi.c scsi: pm8001: Mark symbols static where possible 2016-09-26 21:10:45 -04:00
pm8001_hwi.h [SCSI] pm80xx: Resetting the phy state. 2013-12-02 10:35:52 -08:00
pm8001_init.c scsi: pm8001: fix double free in pm8001_pci_probe 2017-08-10 19:55:35 -04:00
pm8001_sas.c scsi: pm8001: Mark symbols static where possible 2016-09-26 21:10:45 -04:00
pm8001_sas.h scsi: pm8001: switch to pci_irq_alloc_vectors 2017-02-06 19:12:30 -05:00