diff options
author | Guixin Liu <kanie@linux.alibaba.com> | 2024-01-26 16:26:43 +0800 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-01-26 09:16:34 -0800 |
commit | 47c5dd66c1840524572dcdd956f4af2bdb6fbdff (patch) | |
tree | 72f060d89b57136053bc99044d890f2c46862586 | |
parent | 15ade5bfa5abf0e02249239db91d5438fa796d18 (diff) |
nvmet-tcp: fix nvme tcp ida memory leak
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>
-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 da0469978d6f..c8655fc5aa5b 100644 --- a/drivers/nvme/target/tcp.c +++ b/drivers/nvme/target/tcp.c @@ -2216,6 +2216,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); |