diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-05-17 23:24:16 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-05-21 01:02:56 -0400 |
commit | b354aba0165519a74f540f2ba89d7ec78efca21d (patch) | |
tree | 7d15ce8e3fdcd8e899385fd543b9afa396e47fd7 /drivers/nvdimm/nd-core.h | |
parent | acc93d30d7d43f428272c20a047389c4cbca82ba (diff) |
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/nd-core.h')
-rw-r--r-- | drivers/nvdimm/nd-core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvdimm/nd-core.h b/drivers/nvdimm/nd-core.h index cb65308c0329..4136c1a82539 100644 --- a/drivers/nvdimm/nd-core.h +++ b/drivers/nvdimm/nd-core.h | |||
@@ -49,6 +49,8 @@ bool is_nd_blk(struct device *dev); | |||
49 | struct nvdimm_bus *walk_to_nvdimm_bus(struct device *nd_dev); | 49 | struct nvdimm_bus *walk_to_nvdimm_bus(struct device *nd_dev); |
50 | int __init nvdimm_bus_init(void); | 50 | int __init nvdimm_bus_init(void); |
51 | void nvdimm_bus_exit(void); | 51 | void nvdimm_bus_exit(void); |
52 | void nvdimm_devs_exit(void); | ||
53 | void nd_region_devs_exit(void); | ||
52 | void nd_region_probe_success(struct nvdimm_bus *nvdimm_bus, struct device *dev); | 54 | void nd_region_probe_success(struct nvdimm_bus *nvdimm_bus, struct device *dev); |
53 | struct nd_region; | 55 | struct nd_region; |
54 | void nd_region_create_blk_seed(struct nd_region *nd_region); | 56 | void nd_region_create_blk_seed(struct nd_region *nd_region); |