Commit 8168d23
nvme: fix memory leak freeing command effects
xa_destroy() frees only internal data. The caller is responsible for
freeing the exteranl objects referenced by an xarray.
Fixes: 1cf7a12 ("nvme: use an xarray to lookup the Commands Supported and Effects log")
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>1 parent f6224b8 commit 8168d23
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4373 | 4373 | | |
4374 | 4374 | | |
4375 | 4375 | | |
| 4376 | + | |
| 4377 | + | |
| 4378 | + | |
| 4379 | + | |
| 4380 | + | |
| 4381 | + | |
| 4382 | + | |
| 4383 | + | |
| 4384 | + | |
| 4385 | + | |
| 4386 | + | |
| 4387 | + | |
| 4388 | + | |
4376 | 4389 | | |
4377 | 4390 | | |
4378 | 4391 | | |
| |||
4382 | 4395 | | |
4383 | 4396 | | |
4384 | 4397 | | |
4385 | | - | |
4386 | | - | |
| 4398 | + | |
4387 | 4399 | | |
4388 | 4400 | | |
4389 | 4401 | | |
| |||
0 commit comments