]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: fix memory leak freeing command effects
authorKeith Busch <kbusch@kernel.org>
Fri, 13 Nov 2020 18:45:45 +0000 (10:45 -0800)
committerChristoph Hellwig <hch@lst.de>
Sat, 14 Nov 2020 08:57:55 +0000 (09:57 +0100)
commite4f7bc00a5a4b67c2b89dd8ab42a84105371b814
tree9921efe963e679f99953ba22b6f63e3c9bd60522
parentdfa344e1760b5fcf23acd59350aa562eef76fc21
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: ec59ccfa1f288 ("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>
drivers/nvme/host/core.c