diff options
author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-05-20 07:46:04 -0400 |
---|---|---|
committer | Yan, Zheng <zheng.z.yan@intel.com> | 2014-06-05 21:30:00 -0400 |
commit | ffe312cf31c7d8616096616d469eb5f6bb8905c0 (patch) | |
tree | 4d1203d45b864d6a337c35a65b243d00a24bddea /drivers/block/rbd.c | |
parent | 0f2d5be792b0466b06797f637cfbb0f64dbb408c (diff) |
rbd: fix ida/idr memory leak
ida_destroy() needs to be called on module exit to release ida caches.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'drivers/block/rbd.c')
-rw-r--r-- | drivers/block/rbd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 34a981ba1b9e..8295b3afa8e0 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c | |||
@@ -5473,6 +5473,7 @@ err_out_slab: | |||
5473 | 5473 | ||
5474 | static void __exit rbd_exit(void) | 5474 | static void __exit rbd_exit(void) |
5475 | { | 5475 | { |
5476 | ida_destroy(&rbd_dev_id_ida); | ||
5476 | rbd_sysfs_cleanup(); | 5477 | rbd_sysfs_cleanup(); |
5477 | if (single_major) | 5478 | if (single_major) |
5478 | unregister_blkdev(rbd_major, RBD_DRV_NAME); | 5479 | unregister_blkdev(rbd_major, RBD_DRV_NAME); |