[PATCH 1/5] nvmet: fix wrong error handling approach in nvmet_install_queue

Christoph Hellwig hch at lst.de
Wed Dec 13 00:43:19 PST 2023


On Wed, Dec 13, 2023 at 02:32:48PM +0800, Guixin Liu wrote:
> In the nvmet_install_queue() function, do not set the ctrl pointer
> to NULL if the sqsize check fails.

Can you explain why it is wrong, and why not doing it is desirable?



More information about the Linux-nvme mailing list