[PATCH] nvmet-fc: fix invalid free in LS IOD error path

Keith Busch kbusch at kernel.org
Mon Aug 10 12:09:04 PDT 2026


On Wed, Jul 29, 2026 at 07:02:06PM +0800, Jiang HongHui wrote:
> nvmet_fc_alloc_ls_iodlist() advances iod while initializing the LS IOD
> array. If an rqstbuf allocation or response buffer DMA mapping fails,
> the unwind loop decrements iod past the start of the array. The final
> kfree(iod) therefore frees an address before the allocated object.

Thanks, applied to nvme-7.3.



More information about the Linux-nvme mailing list