linux/drivers/scsi/qla4xxx
Dan Carpenter fee92f2577 scsi: iscsi: qla4xxx: fix double free in probe
On this error path we call qla4xxx_mem_free() and then the caller also
calls qla4xxx_free_adapter() which calls qla4xxx_mem_free().  It leads to a
couple double frees:

drivers/scsi/qla4xxx/ql4_os.c:8856 qla4xxx_probe_adapter() warn: 'ha->chap_dma_pool' double freed
drivers/scsi/qla4xxx/ql4_os.c:8856 qla4xxx_probe_adapter() warn: 'ha->fw_ddb_dma_pool' double freed

Fixes: afaf5a2d34 ("[SCSI] Initial Commit of qla4xxx")
Link: https://lore.kernel.org/r/20191203094421.hw7ex7qr3j2rbsmx@kili.mountain
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-12-09 19:01:51 -05:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
ql4_83xx.c
ql4_83xx.h
ql4_attr.c
ql4_bsg.c
ql4_bsg.h
ql4_dbg.c
ql4_dbg.h
ql4_def.h scsi: qla4xxx: skip error recovery in case of register disconnect. 2018-02-13 21:35:41 -05:00
ql4_fw.h
ql4_glbl.h scsi: qla4xxx: switch to pci_alloc_irq_vectors 2016-12-07 18:58:58 -05:00
ql4_init.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
ql4_inline.h
ql4_iocb.c
ql4_isr.c scsi: qla4xxx: switch to pci_alloc_irq_vectors 2016-12-07 18:58:58 -05:00
ql4_mbx.c scsi: qla4xxx: fix double free bug 2019-11-19 21:37:34 -05:00
ql4_nvram.c
ql4_nvram.h
ql4_nx.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
ql4_nx.h scsi: qla4xxx: Move an array from a .h into a .c file 2018-02-12 11:43:24 -05:00
ql4_os.c scsi: iscsi: qla4xxx: fix double free in probe 2019-12-09 19:01:51 -05:00
ql4_version.h