Commit 9f1f4a57 authored by Jeff Garzik's avatar Jeff Garzik Committed by Linus Torvalds

Fix ramdisk driver leak on module unload.

Noticed by me, fixed by Jens.
parent 837fd582
......@@ -316,6 +316,7 @@ static void __exit rd_cleanup(void)
}
del_gendisk(rd_disks[i]);
put_disk(rd_disks[i]);
blk_cleanup_queue(rd_queue[i]);
}
devfs_remove("rd");
unregister_blkdev(RAMDISK_MAJOR, "ramdisk");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment