Re: [PATCH] scsi: elx: libefc: fix resources leak in efcport_init() error path

From: Martin K. Petersen (Oracle)

Date: Wed Oct 28 2026 - 22:06:18 EST


On Fri, 09 Oct 2026 02:54:03 +0800, Haotian Zhang wrote:

> efcport_init() creates efc->node_pool and efc->node_dma_pool before
> allocating efc->els_io_pool. When the latter allocation fails it returns
> -ENOMEM without releasing the node dma pool or the node pool, leaking
> both. The caller efct_efclib_config() only logs the error and
> efct_device_attach() failure path never calls efcport_destroy(), so the
> resources are never freed.
>
> [...]

Applied to 7.4/scsi-queue, thanks!

[1/1] scsi: elx: libefc: fix resources leak in efcport_init() error path
https://git.kernel.org/mkp/scsi/c/b4bd078b78c2

--
Martin K. Petersen