Re: [PATCH] scsi: lpfc: Fix memory leak in lpfc_create_port()

From: Martin K. Petersen
Date: Sat Oct 01 2022 - 06:02:02 EST



> Commit 5e633302ace1 ("scsi: lpfc: vmid: Add support for VMID in mailbox
> command") introduced allocations for the VMID resources in
> lpfc_create_port() after the call to scsi_host_alloc(). Upon failure on the
> VMID allocations, the new code would branch to the 'out' label, which
> returns NULL without unwinding anything, thus skipping the call to
> scsi_host_put().

Broadcom: Please review, thanks!

--
Martin K. Petersen Oracle Linux Engineering