[PATCH] nvme: initialize identify ns data to NULL

Tokunori Ikegami ikegami.t at gmail.com
Tue Mar 26 06:51:09 PDT 2024


On 2024/03/26 17:50, Kanchan Joshi wrote:
> 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.
  Yes I think this just helps if in future the nvme_identify_ns() 
function or the caller functions changed the implementation.



More information about the Linux-nvme mailing list