[PATCH 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      | 3 +++
drivers/scsi/lpfc/lpfc_nportdisc.c | 4 +++-
2 files changed, 6 insertions(+), 1 deletion(-)
[PATCH 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.

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
Re: [PATCH 0/3] scsi: lpfc: Fix multiple memory leaks in error paths
Posted by Justin Tee 1 month, 1 week ago
Hi Zilin,

For this patch set, please see and attend to Markus’ comments.

Regards,
Justin
Re: [PATCH 0/3] scsi: lpfc: Fix multiple memory leaks in error paths
Posted by Dan Carpenter 1 month ago
On Mon, Dec 29, 2025 at 06:04:01PM -0800, Justin Tee wrote:
> Hi Zilin,
> 
> For this patch set, please see and attend to Markus’ comments.

You should provide a link to lore because a lot of people have blocked
Markus so we don't see it in our inboxes.

regards,
dan carpenter

Re: [PATCH 0/3] scsi: lpfc: Fix multiple memory leaks in error paths
Posted by Zilin Guan 1 month, 1 week ago
On Mon, Dec 29, 2025 at 06:04:01PM -0800, Justin Tee wrote:
> Hi Zilin,
> 
> For this patch set, please see and attend to Markus’ comments.
> 
> Regards,
> Justin

Hi Justin,

Thanks for the reminder.

It seems Markus' email was accidentally filtered as spam by my mail 
server, which is why I missed it. I have retrieved it now and will 
address his comments shortly.

Best regards,
Zilin Guan