[RFC 1/3] nvme: Return -ENOMEM when kzalloc fails

Keith Busch kbusch at kernel.org
Thu Oct 27 09:26:57 PDT 2022


On Thu, Oct 27, 2022 at 05:57:22PM +0200, Joel Granados wrote:
> In nvme_init_non_mdts_limits function we were returning 0 when kzalloc
> failed. This patch corrects this behavior and return -ENOMEM
> Fixes: 5befc7c26e5a ("nvme: implement non-mdts command limits")

I'm pretty sure I had this returning 0 on purpose. We can proceed
without this optional structure.



More information about the Linux-nvme mailing list