From: Akinobu Mita Date: Wed, 20 Aug 2008 21:09:09 +0000 (-0700) Subject: brd: fix name argument of unregister_blkdev() X-Git-Tag: v2.6.27-rc4~14 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c82f2966015a2c9708fb8f20694ef7ba8567d2e1;p=linux-2.6-omap-h63xx.git brd: fix name argument of unregister_blkdev() The name of brd block device is "ramdisk", it's not "brd". (The block device is registered by register_blkdev(RAMDISK_MAJOR, "ramdisk") So it should be unregistered by unregister_blkdev(RAMDISK_MAJOR, "ramdisk") Signed-off-by: Akinobu Mita Acked-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/brd.c b/drivers/block/brd.c index 24b97b0bef9..d070d492e38 100644 --- a/drivers/block/brd.c +++ b/drivers/block/brd.c @@ -571,8 +571,8 @@ out_free: list_del(&brd->brd_list); brd_free(brd); } + unregister_blkdev(RAMDISK_MAJOR, "ramdisk"); - unregister_blkdev(RAMDISK_MAJOR, "brd"); return -ENOMEM; }