Re: [PATCH 1/3] scsi: lpfc: Fix memory leak in lpfc_config_port_post()

From: Markus Elfring
Date: Mon Dec 29 2025 - 04:09:34 EST



> Fix this by adding mempool_free() in the error path.

Please avoid duplicate source code here.
https://elixir.bootlin.com/linux/v6.19-rc2/source/drivers/scsi/lpfc/lpfc_init.c#L563-L564


See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.19-rc3#n262

Regards,
Markus