mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
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>
This commit is contained in:
parent
0f2d5be792
commit
ffe312cf31
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user