[PATCH] nvme: check for valid data from from nvme_identify_ns() before using it

Keith Busch kbusch at kernel.org
Wed Nov 22 08:30:47 PST 2023


On Wed, Nov 22, 2023 at 08:45:02AM +0100, Maurizio Lombardi wrote:
> 'ut 21. 11. 2023 v 19:14 odes'ilatel Keith Busch <kbusch at kernel.org> napsal:
> > The concept sounds good, though you are leaking 'id' in the new error case.
> >
> 
> We have the same problem in the nvme_ns_info_from_identify() function.

Indeed you are correct. Would you like to send the patch for it? This
patch will also need a v2 to incorporate the same.



More information about the Linux-nvme mailing list