linux/drivers/scsi/lpfc
Abdun Nihaal 1bd28625e2 scsi: lpfc: Fix memory leak in lpfc_sli4_driver_resource_setup()
The memory allocated for mboxq using mempool_alloc() is not freed in
some of the early exit error paths. Fix that by moving the
mempool_free() call to an earlier point after last use.

Fixes: d79c9e9d4b ("scsi: lpfc: Support dynamic unbounded SGL lists on G7 hardware.")
Cc: stable@vger.kernel.org
Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in>
Reviewed-by: Justin Tee <justin.tee@broadcom.com>
Link: https://patch.msgid.link/20260707065304.949135-1-nihaal@cse.iitm.ac.in
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2026-07-08 22:00:46 -04:00
..
lpfc_attr.c scsi: lpfc: Fix spelling mistakes in comments 2026-06-08 17:46:38 -04:00
lpfc_attr.h
lpfc_bsg.c scsi: lpfc: Fix spelling mistakes in comments 2026-06-08 17:46:38 -04:00
lpfc_bsg.h scsi: lpfc: Copyright updates for 14.4.0.7 patches 2025-01-02 15:01:23 -05:00
lpfc_compat.h
lpfc_crtn.h scsi: lpfc: Use the crc32c() function 2026-03-19 21:46:49 -04:00
lpfc_ct.c scsi: lpfc: Cleanup error exit paths in lpfc_fdmi_cmd() and associated messages 2026-02-24 13:06:52 -05:00
lpfc_debugfs.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
lpfc_debugfs.h scsi: lpfc: Copyright updates for 14.4.0.11 patches 2025-09-16 22:20:00 -04:00
lpfc_disc.h scsi: lpfc: Update class of service bit field to 3 bits for WQE submissions 2026-02-24 13:06:52 -05:00
lpfc_els.c scsi: lpfc: Fix spelling mistakes in comments 2026-06-08 17:46:38 -04:00
lpfc_hbadisc.c scsi: lpfc: Fix spelling mistakes in comments 2026-06-08 17:46:38 -04:00
lpfc_hw.h scsi: lpfc: Add PCI ID support for LPe42100 series adapters 2026-04-02 21:34:02 -04:00
lpfc_hw4.h scsi: lpfc: Fix spelling mistakes in comments 2026-06-08 17:46:38 -04:00
lpfc_ids.h scsi: lpfc: Add PCI ID support for LPe42100 series adapters 2026-04-02 21:34:02 -04:00
lpfc_init.c scsi: lpfc: Fix memory leak in lpfc_sli4_driver_resource_setup() 2026-07-08 22:00:46 -04:00
lpfc_logmsg.h scsi: lpfc: Add support for reporting encryption events 2025-12-16 21:56:48 -05:00
lpfc_mbox.c scsi: lpfc: Introduce 128G link speed selection and support 2026-04-02 21:34:02 -04:00
lpfc_mem.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
lpfc_nl.h
lpfc_nportdisc.c scsi: lpfc: Add REG_VFI mailbox cmd error handling 2026-04-02 21:34:01 -04:00
lpfc_nvme.c scsi: lpfc: Update construction of SGL when XPSGL is enabled 2026-04-02 21:34:02 -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: Remove deprecated PBDE feature 2026-04-02 21:34:02 -04:00
lpfc_scsi.c scsi: lpfc: Fix spelling mistakes in comments 2026-06-08 17:46:38 -04:00
lpfc_scsi.h scsi: lpfc: Copyright updates for 14.4.0.2 patches 2024-05-06 21:53:58 -04:00
lpfc_sli.c scsi: lpfc: Fix spelling mistakes in comments 2026-06-08 17:46:38 -04:00
lpfc_sli.h scsi: lpfc: Copyright updates for 14.4.0.1 patches 2024-03-10 18:56:44 -04:00
lpfc_sli4.h scsi: lpfc: Fix spelling mistakes in comments 2026-06-08 17:46:38 -04:00
lpfc_version.h scsi: lpfc: Update lpfc version to 15.0.0.0 2026-04-02 21:34:02 -04:00
lpfc_vmid.c scsi: lpfc: convert timeouts to secs_to_jiffies() 2025-01-12 20:21:03 -08:00
lpfc_vport.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
lpfc_vport.h scsi: lpfc: Copyright updates for 14.2.0.6 patches 2022-08-31 23:39:58 -04:00
lpfc.h Merge patch series "Update lpfc to revision 15.0.0.0" 2026-04-02 21:35:53 -04:00
Makefile scsi: lpfc: Commonize VMID code location 2022-05-19 20:24:56 -04:00