linux/drivers/scsi/lpfc
Dan Carpenter 2dbc0ea1d1 scsi: lpfc: Fix ancient double free
[ Upstream commit 0be310979e ]

The "pmb" pointer is freed at the start of the function and then freed
again in the error handling code.

Link: https://lore.kernel.org/r/YA6E8rO51hE56SVw@mwanda
Fixes: 92d7f7b0cd ("[SCSI] lpfc: NPIV: add NPIV support on top of SLI-3")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2021-03-04 11:38:01 +01:00
..
lpfc.h scsi: lpfc: Fix scheduling call while in softirq context in lpfc_unreg_rpi 2020-12-30 11:54:23 +01:00
lpfc_attr.c scsi: lpfc: Remove unneeded variable 'status' in lpfc_fcp_cpu_map_store() 2020-10-02 22:04:59 -04:00
lpfc_attr.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_bsg.c scsi: lpfc: Fix validation of bsg reply lengths 2020-08-04 20:56:57 -04:00
lpfc_bsg.h scsi: lpfc: Allow applications to issue Common Set Features mailbox command 2020-07-02 23:06:40 -04:00
lpfc_compat.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_crtn.h scsi: lpfc: Add an internal trace log buffer 2020-07-02 23:06:49 -04:00
lpfc_ct.c SCSI misc on 20201013 2020-10-14 15:15:35 -07:00
lpfc_debugfs.c scsi: lpfc: Remove set but not used 'qp' 2020-09-09 22:42:39 -04:00
lpfc_debugfs.h scsi: lpfc: Make debugfs ktime stats generic for NVME and SCSI 2020-03-29 18:10:58 -04:00
lpfc_disc.h scsi: lpfc: Fix scheduling call while in softirq context in lpfc_unreg_rpi 2020-12-30 11:54:23 +01:00
lpfc_els.c SCSI fixes on 20200908 2020-09-08 11:42:58 -07:00
lpfc_hbadisc.c scsi: lpfc: Fix ancient double free 2021-03-04 11:38:01 +01:00
lpfc_hw.h scsi: lpfc: Remove prototype FIPS/DSS options from SLI-3 2020-03-29 18:10:58 -04:00
lpfc_hw4.h scsi: lpfc: Extend the RDF FPIN Registration descriptor for additional events 2020-08-31 21:51:27 -04:00
lpfc_ids.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_init.c scsi: lpfc: Fix scheduling call while in softirq context in lpfc_unreg_rpi 2020-12-30 11:54:23 +01:00
lpfc_logmsg.h scsi: lpfc: Add an internal trace log buffer 2020-07-02 23:06:49 -04:00
lpfc_mbox.c scsi: lpfc: Fix a bunch of kerneldoc misdemeanors 2020-07-24 22:32:03 -04:00
lpfc_mem.c scsi: lpfc: Re-fix use after free in lpfc_rq_buf_free() 2020-12-30 11:54:23 +01:00
lpfc_nl.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_nportdisc.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
lpfc_nvme.c scsi: lpfc: Fix EEH encountering oops with NVMe traffic 2021-02-17 11:02:22 +01:00
lpfc_nvme.h lpfc: nvmet: Add support for NVME LS request hosthandle 2020-05-09 16:18:34 -06:00
lpfc_nvmet.c scsi: lpfc: nvmet: Avoid hang / use-after-free again when destroying targetport 2020-08-04 20:56:56 -04:00
lpfc_scsi.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
lpfc_scsi.h scsi: lpfc: Update 12.2.0.0 file copyrights to 2019 2019-02-05 22:29:50 -05:00
lpfc_sli.c scsi: lpfc: Fix variable 'vport' set but not used in lpfc_sli4_abts_err_handler() 2021-01-17 14:16:59 +01:00
lpfc_sli.h scsi: lpfc: Make debugfs ktime stats generic for NVME and SCSI 2020-03-29 18:10:58 -04:00
lpfc_sli4.h scsi: lpfc: Fix scheduling call while in softirq context in lpfc_unreg_rpi 2020-12-30 11:54:23 +01:00
lpfc_version.h scsi: lpfc: Update lpfc version to 12.8.0.4 2020-08-31 21:51:28 -04:00
lpfc_vport.c scsi: lpfc: Add an internal trace log buffer 2020-07-02 23:06:49 -04:00
lpfc_vport.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
Makefile scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00