diff options
author | Guixin Liu <kanie@linux.alibaba.com> | 2024-01-26 16:26:43 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-03-01 13:34:51 +0100 |
commit | 307fc03dc43341357adb5ba243fad488c8714f3a (patch) | |
tree | a2700ecf116637c3a8c8e66b753b07f194ef28b0 | |
parent | 83527a13740f57b45f162e3af4c7db4b88521100 (diff) | |
download | linux-stable-307fc03dc43341357adb5ba243fad488c8714f3a.tar.gz linux-stable-307fc03dc43341357adb5ba243fad488c8714f3a.tar.bz2 linux-stable-307fc03dc43341357adb5ba243fad488c8714f3a.zip |
nvmet-tcp: fix nvme tcp ida memory leak
[ Upstream commit 47c5dd66c1840524572dcdd956f4af2bdb6fbdff ]
The nvmet_tcp_queue_ida should be destroy when the nvmet-tcp module
exit.
Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/nvme/target/tcp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/target/tcp.c b/drivers/nvme/target/tcp.c index a4f802790ca0..8e5d547aa16c 100644 --- a/drivers/nvme/target/tcp.c +++ b/drivers/nvme/target/tcp.c @@ -1927,6 +1927,7 @@ static void __exit nvmet_tcp_exit(void) flush_workqueue(nvmet_wq); destroy_workqueue(nvmet_tcp_wq); + ida_destroy(&nvmet_tcp_queue_ida); } module_init(nvmet_tcp_init); |