Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ffe312cf authored by Ilya Dryomov's avatar Ilya Dryomov Committed by Yan, Zheng
Browse files

rbd: fix ida/idr memory leak



ida_destroy() needs to be called on module exit to release ida caches.

Signed-off-by: default avatarIlya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
parent 0f2d5be7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);