[PATCH 0/3] scsi: lpfc: Fix multiple memory leaks in error paths

From: Zilin Guan

Date: Mon Dec 29 2025 - 02:15:52 EST


This series fixes three independent memory leaks in the lpfc driver.
All of them occur in error handling paths where allocated memory
was not properly freed before returning.

These issues were identified during static analysis.

Zilin Guan (3):
scsi: lpfc: Fix memory leak in lpfc_config_port_post()
scsi: lpfc: Fix memory leak in lpfc_sli4_driver_resource_setup()
scsi: lpfc: Fix memory leak in lpfc_cmpl_plogi_plogi_issue()

drivers/scsi/lpfc/lpfc_init.c | 3 +++
drivers/scsi/lpfc/lpfc_nportdisc.c | 4 +++-
2 files changed, 6 insertions(+), 1 deletion(-)

--
2.34.1