[PATCH] nvme: fix memory leak freeing command effects
Chaitanya Kulkarni
Chaitanya.Kulkarni at wdc.com
Mon Nov 16 18:23:30 EST 2020
On 11/13/20 10:45, Keith Busch wrote:
> xa_destroy() frees only internal data. The caller is responsible for
> freeing the exteranl objects referenced by an xarray.
>
> Fixes: 1cf7a12e09aa4 ("nvme: use an xarray to lookup the Commands Supported and Effects log")
> Signed-off-by: Keith Busch <kbusch at kernel.org>
> ---
Thanks for fixing this up, it'd nice to have a common helper
which also erases the itmes from XArray so we don't have to
repeat the code to erase item indivisually.
I'll see if I can send an RFC.
More information about the Linux-nvme
mailing list