diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-05-17 20:24:16 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-05-20 22:02:56 -0700 |
commit | b354aba0165519a74f540f2ba89d7ec78efca21d (patch) | |
tree | 7d15ce8e3fdcd8e899385fd543b9afa396e47fd7 /drivers/nvdimm/core.c | |
parent | acc93d30d7d43f428272c20a047389c4cbca82ba (diff) | |
download | linux-b354aba0165519a74f540f2ba89d7ec78efca21d.tar.bz2 |
libnvdimm: release ida resources
ida instances allocate some internal memory for ->free_bitmap in
addition to the base 'struct ida'. Use ida_destroy() to release that
memory at module_exit().
Reported-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/core.c')
-rw-r--r-- | drivers/nvdimm/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nvdimm/core.c b/drivers/nvdimm/core.c index 182a93fe3712..847532de087a 100644 --- a/drivers/nvdimm/core.c +++ b/drivers/nvdimm/core.c @@ -648,6 +648,9 @@ static __exit void libnvdimm_exit(void) nd_region_exit(); nvdimm_exit(); nvdimm_bus_exit(); + nd_region_devs_exit(); + nvdimm_devs_exit(); + ida_destroy(&nd_ida); } MODULE_LICENSE("GPL v2"); |