[PATCH] nvme-pci: use correct size to free the hmb buffer

Keith Busch kbusch at kernel.org
Fri Jan 10 19:56:51 PST 2025


On Fri, Jan 10, 2025 at 05:21:37AM +0530, francis.p at samsung.com wrote:
> From: Francis Pravin <francis.p at samsung.com>
> 
> dev->host_mem_size value is updated only after the successful buffer
> allocation of hmb descriptor. Otherwise, it may have some undefined value.
> So, use the correct size to free the hmb buffer when the hmb descriptor
> buffer allocation failed.

Thanks, applied to nvme-6.14.



More information about the Linux-nvme mailing list