Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/3] scsi: lpfc: Fix multiple memory leaks in error paths
@ 2025-12-30 14:58 Zilin Guan
  2025-12-30 14:58 ` [PATCH v2 1/3] scsi: lpfc: Fix memory leak in lpfc_config_port_post() Zilin Guan
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Zilin Guan @ 2025-12-30 14:58 UTC (permalink / raw)
  To: justin.tee
  Cc: paul.ely, James.Bottomley, martin.petersen, Markus.Elfring,
	jianhao.xu, linux-scsi, linux-kernel, Zilin Guan

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-12-31 15:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-30 14:58 [PATCH v2 0/3] scsi: lpfc: Fix multiple memory leaks in error paths Zilin Guan
2025-12-30 14:58 ` [PATCH v2 1/3] scsi: lpfc: Fix memory leak in lpfc_config_port_post() Zilin Guan
2025-12-30 16:01   ` Markus Elfring
2025-12-31 15:07     ` Zilin Guan
2025-12-30 14:58 ` [PATCH v2 2/3] scsi: lpfc: Fix memory leak in lpfc_sli4_driver_resource_setup() Zilin Guan
2025-12-30 14:58 ` [PATCH v2 3/3] scsi: lpfc: Fix memory leak in lpfc_cmpl_plogi_plogi_issue() Zilin Guan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox