Skip to content

Commit

Permalink
rbd: fix ida/idr memory leak
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ilya Dryomov authored and Yan, Zheng committed Jun 6, 2014
1 parent 0f2d5be commit ffe312c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -5473,6 +5473,7 @@ static int __init rbd_init(void)

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);
Expand Down

0 comments on commit ffe312c

Please sign in to comment.