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

Zilin Guan posted 3 patches 1 month, 1 week ago
There is a newer version of this series
drivers/scsi/lpfc/lpfc_init.c      | 21 +++++++++++----------
drivers/scsi/lpfc/lpfc_nportdisc.c |  4 +++-
2 files changed, 14 insertions(+), 11 deletions(-)
[PATCH v2 0/3] scsi: lpfc: Fix multiple memory leaks in error paths
Posted by Zilin Guan 1 month, 1 week ago
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.

Signed-off-by: Zilin Guan <zilin@seu.edu.cn>

Changes in v2:
- Patch 1: Refactor error handling to use a goto label for cleanup.
- Patch 2: No changes.
- Patch 3: No changes.

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      | 21 +++++++++++----------
 drivers/scsi/lpfc/lpfc_nportdisc.c |  4 +++-
 2 files changed, 14 insertions(+), 11 deletions(-)

-- 
2.34.1