mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 15:29:16 +00: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 @@ 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user