linux-brain/drivers/scsi/lpfc
James Smart 600a91ab59 scsi: lpfc: Fix crash when lpfc_sli4_hba_setup() fails to initialize the SGLs
[ Upstream commit 5aa615d195f1e142c662cb2253f057c9baec7531 ]

The driver is encountering a crash in lpfc_free_iocb_list() while
performing initial attachment.

Code review found this to be an errant failure path that was taken, jumping
to a tag that then referenced structures that were uninitialized.

Fix the failure path.

Link: https://lore.kernel.org/r/20210514195559.119853-9-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:10:42 +02:00
..
Makefile
lpfc.h scsi: lpfc: Fix broken Credit Recovery after driver load 2020-04-17 10:50:24 +02:00
lpfc_attr.c scsi: lpfc: Fix error handling for mailboxes completed in MBX_POLL mode 2021-05-11 14:04:12 +02:00
lpfc_attr.h
lpfc_bsg.c scsi: lpfc: Fix memory leak on lpfc_bsg_write_ebuf_set func 2020-01-09 10:19:44 +01:00
lpfc_bsg.h scsi: lpfc: Update Copyright in driver version 2019-03-19 13:15:10 -04:00
lpfc_compat.h
lpfc_crtn.h scsi: lpfc: Remove unsupported mbox PORT_CAPABILITIES logic 2021-05-11 14:04:12 +02:00
lpfc_ct.c scsi: lpfc: Fix coverity errors in fmdi attribute handling 2020-10-01 13:17:33 +02:00
lpfc_debugfs.c scsi: lpfc: Fix some error codes in debugfs 2021-03-24 11:26:39 +01:00
lpfc_debugfs.h scsi: lpfc: Merge per-protocol WQ/CQ pairs into single per-cpu pair 2019-08-19 22:41:12 -04:00
lpfc_disc.h scsi: lpfc: Add NVMe sequence level error recovery support 2019-08-19 22:41:12 -04:00
lpfc_els.c scsi: lpfc: Fix "Unexpected timeout" error in direct attach topology 2021-07-20 16:10:42 +02:00
lpfc_hbadisc.c scsi: lpfc: Fix initial FLOGI failure due to BBSCN not supported 2020-10-01 13:18:22 +02:00
lpfc_hw.h scsi: lpfc: Fix coverity errors in fmdi attribute handling 2020-10-01 13:17:33 +02:00
lpfc_hw4.h scsi: lpfc: Remove unsupported mbox PORT_CAPABILITIES logic 2021-05-11 14:04:12 +02:00
lpfc_ids.h
lpfc_init.c scsi: lpfc: Remove unsupported mbox PORT_CAPABILITIES logic 2021-05-11 14:04:12 +02:00
lpfc_logmsg.h
lpfc_mbox.c scsi: lpfc: Remove unsupported mbox PORT_CAPABILITIES logic 2021-05-11 14:04:12 +02:00
lpfc_mem.c scsi: lpfc: Re-fix use after free in lpfc_rq_buf_free() 2020-12-30 11:51:44 +01:00
lpfc_nl.h
lpfc_nportdisc.c scsi: lpfc: Fix crash when a REG_RPI mailbox fails triggering a LOGO response 2021-05-11 14:04:12 +02:00
lpfc_nvme.c scsi: lpfc: Fix crash in target side cable pulls hitting WAIT_FOR_UNREG 2020-04-29 16:32:58 +02:00
lpfc_nvme.h
lpfc_nvmet.c scsi: lpfc: Fix incorrect dbde assignment when building target abts wqe 2021-05-11 14:04:08 +02:00
lpfc_nvmet.h scsi: lpfc: Fix nvmet handling of received ABTS for unmapped frames 2019-06-18 19:46:21 -04:00
lpfc_scsi.c scsi: lpfc: Fix lpfc_io_buf resource leak in lpfc_get_scsi_buf_s4 error path 2020-04-17 10:50:19 +02:00
lpfc_scsi.h
lpfc_sli.c scsi: lpfc: Fix crash when lpfc_sli4_hba_setup() fails to initialize the SGLs 2021-07-20 16:10:42 +02:00
lpfc_sli.h scsi: lpfc: Fix bad ndlp ptr in xri aborted handling 2019-12-17 19:55:26 +01:00
lpfc_sli4.h scsi: lpfc: Add registration for CPU Offline/Online events 2020-04-17 10:50:24 +02:00
lpfc_version.h scsi: lpfc: Update lpfc version to 12.4.0.0 2019-08-19 22:41:12 -04:00
lpfc_vport.c scsi: lpfc: Fix shost refcount mismatch when deleting vport 2020-09-03 11:26:44 +02:00
lpfc_vport.h