linux/drivers/scsi/lpfc
James Smart 4eb7a1beff scsi: lpfc: Fix possible memory leak when failing to issue CMF WQE
[ Upstream commit 2f67dc7970 ]

There is no corresponding free routine if lpfc_sli4_issue_wqe fails to
issue the CMF WQE in lpfc_issue_cmf_sync_wqe.

If ret_val is non-zero, then free the iocbq request structure.

Link: https://lore.kernel.org/r/20220701211425.2708-6-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>
History 2022-08-25 11:45:43 +02:00
..
lpfc.h scsi: lpfc: Revert RSCN_MEMENTO workaround for misbehaved configuration 2022-08-17 15:15:29 +02:00
lpfc_attr.c scsi: lpfc: Copyright updates for 14.2.0.2 patches 2022-04-18 22:48:48 -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 additional reference counting in lpfc_bsg_rport_els() 2022-05-02 16:59:11 -04:00
lpfc_bsg.h scsi: lpfc: Copyright updates for 14.0.0.1 patches 2021-08-24 22:56:34 -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: Resolve some cleanup issues following abort path refactoring 2022-06-07 21:38:17 -04:00
lpfc_ct.c scsi: lpfc: Correct BDE type for XMIT_SEQ64_WQE in lpfc_ct_reject_event() 2022-06-07 21:38:17 -04:00
lpfc_debugfs.c scsi: lpfc: Prevent buffer overflow crashes in debugfs with malformed user input 2022-08-25 11:45:43 +02:00
lpfc_debugfs.h scsi: lpfc: Adjust CMF total bytes and rxmonitor 2021-12-06 22:35:37 -05:00
lpfc_disc.h scsi: lpfc: Allow fabric node recovery if recovery is in progress before devloss 2021-10-20 23:33:46 -04:00
lpfc_els.c scsi: lpfc: Revert RSCN_MEMENTO workaround for misbehaved configuration 2022-08-17 15:15:29 +02:00
lpfc_hbadisc.c scsi: lpfc: Revert RSCN_MEMENTO workaround for misbehaved configuration 2022-08-17 15:15:29 +02:00
lpfc_hw.h scsi: lpfc: Add support for ATTO Fibre Channel devices 2022-06-01 22:40:59 -04:00
lpfc_hw4.h scsi: lpfc: Allow reduced polling rate for nvme_admin_async_event cmd completion 2022-06-07 21:38:18 -04:00
lpfc_ids.h scsi: lpfc: Add support for ATTO Fibre Channel devices 2022-06-01 22:40:59 -04:00
lpfc_init.c scsi: lpfc: Resolve some cleanup issues following SLI path refactoring 2022-06-07 21:38:17 -04:00
lpfc_logmsg.h scsi: lpfc: Copyright updates for 14.2.0.2 patches 2022-04-18 22:48:48 -04:00
lpfc_mbox.c scsi: lpfc: Copyright updates for 14.2.0.2 patches 2022-04-18 22:48:48 -04:00
lpfc_mem.c scsi: lpfc: Copyright updates for 14.0.0.1 patches 2021-08-24 22:56:34 -04:00
lpfc_nl.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_nportdisc.c scsi: lpfc: Fix port stuck in bypassed state after LIP in PT2PT topology 2022-06-07 21:38:18 -04:00
lpfc_nvme.c scsi: lpfc: Allow reduced polling rate for nvme_admin_async_event cmd completion 2022-06-07 21:38:18 -04:00
lpfc_nvme.h scsi: lpfc: Copyright updates for 14.2.0.0 patches 2022-03-15 13:51:50 -04:00
lpfc_nvmet.c scsi: lpfc: Fix field overload in lpfc_iocbq data structure 2022-04-18 22:48:46 -04:00
lpfc_scsi.c scsi: lpfc: Remove extra atomic_inc on cmd_pending in queuecommand after VMID 2022-08-17 15:13:53 +02:00
lpfc_scsi.h scsi: lpfc: Copyright updates for 14.0.0.0 patches 2021-07-27 00:06:41 -04:00
lpfc_sli.c scsi: lpfc: Fix possible memory leak when failing to issue CMF WQE 2022-08-25 11:45:43 +02:00
lpfc_sli.h scsi: lpfc: Refactor cleanup of mailbox commands 2022-04-18 22:48:47 -04:00
lpfc_sli4.h scsi: lpfc: Change FA-PWWN detection methodology 2022-04-18 22:48:47 -04:00
lpfc_version.h scsi: lpfc: Update lpfc version to 14.2.0.4 2022-06-07 21:38:18 -04:00
lpfc_vmid.c scsi: lpfc: Commonize VMID code location 2022-05-19 20:24:56 -04:00
lpfc_vport.c scsi: lpfc: Copyright updates for 14.2.0.2 patches 2022-04-18 22:48:48 -04:00
lpfc_vport.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
Makefile scsi: lpfc: Commonize VMID code location 2022-05-19 20:24:56 -04:00