projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f2d5be
)
rbd: fix ida/idr memory leak
author
Ilya Dryomov
<ilya.dryomov@inktank.com>
Tue, 20 May 2014 11:46:04 +0000
(15:46 +0400)
committer
Yan, Zheng
<zheng.z.yan@intel.com>
Fri, 6 Jun 2014 01:30:00 +0000
(09:30 +0800)
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>
drivers/block/rbd.c
patch
|
blob
|
history
diff --git
a/drivers/block/rbd.c
b/drivers/block/rbd.c
index 34a981ba1b9e501863fa1f27858dcc932fb2eed2..8295b3afa8e0f8015217af4326f1a098aa8c7e67 100644
(file)
--- a/
drivers/block/rbd.c
+++ b/
drivers/block/rbd.c
@@
-5473,6
+5473,7
@@
err_out_slab:
static void __exit rbd_exit(void)
{
+ ida_destroy(&rbd_dev_id_ida);
rbd_sysfs_cleanup();
if (single_major)
unregister_blkdev(rbd_major, RBD_DRV_NAME);