[PATCH] nvme: initialize identify ns data to NULL

Kanchan Joshi joshi.k at samsung.com
Tue Mar 26 01:50:36 PDT 2024


On 3/25/2024 9:15 PM, Tokunori Ikegami wrote:
> Currently nvme_identify_ns() sets the data to NULL if failed.
> Also the data is not freed if the function returned failure.

If it fails, it frees the allocated memory too.
So I don't see how the patch helps.



More information about the Linux-nvme mailing list