From: Max Gurtovoy Date: Wed, 18 Mar 2020 15:27:59 +0000 (+0200) Subject: nvme: release ida resources X-Git-Tag: v5.7-rc1~202^2~3^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f41cfd5d0a04b12a5dae753cd01163661432ebbb;p=thirdparty%2Fkernel%2Flinux.git nvme: release ida resources ida instances allocate some internal memory in addition to the base 'struct ida'. Use ida_destroy() to release that memory at module_exit(). Reviewed-by: Christoph Hellwig Signed-off-by: Max Gurtovoy Signed-off-by: Keith Busch --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 3c1c826ea491b..ad0847b6c769a 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -4358,6 +4358,7 @@ static void __exit nvme_core_exit(void) destroy_workqueue(nvme_delete_wq); destroy_workqueue(nvme_reset_wq); destroy_workqueue(nvme_wq); + ida_destroy(&nvme_instance_ida); } MODULE_LICENSE("GPL");