libnvdimm: release ida resources
authorDan Williams <dan.j.williams@intel.com>
Wed, 18 May 2016 03:24:16 +0000 (20:24 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 21 May 2016 05:02:56 +0000 (22:02 -0700)
commitb354aba0165519a74f540f2ba89d7ec78efca21d
tree7d15ce8e3fdcd8e899385fd543b9afa396e47fd7
parentacc93d30d7d43f428272c20a047389c4cbca82ba
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>
drivers/nvdimm/core.c
drivers/nvdimm/dimm_devs.c
drivers/nvdimm/nd-core.h
drivers/nvdimm/region_devs.c