[PATCH] nvme: free prp_pool on nvme_init() failure paths

Neil Armstrong neil.armstrong at linaro.org
Wed Jun 3 18:22:47 CEST 2026


Hi,

On Sun, 24 May 2026 20:27:16 +0530, Prashant Kamble wrote:
> nvme_init() allocates prp_pool after configuring the admin queue,
> but some later error paths return without freeing it.
> 
> Free prp_pool before freeing the queue array in the failure paths
> after nvme_setup_io_queues() and namespace ID buffer allocation.
> 
> This fixes a memory leak during NVMe initialization failures.
> 
> [...]

Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-ufs (u-boot-nvme-fixes)

[1/1] nvme: free prp_pool on nvme_init() failure paths
      https://source.denx.de/u-boot/custodians/u-boot-ufs/-/commit/11e056e3207d3b4eabebb1a7630b0195ee9eb5ee

-- 
Neil



More information about the U-Boot mailing list