Skip to content

Commit

Permalink
brd: fix name argument of unregister_blkdev()
Browse files Browse the repository at this point in the history
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 <akinobu.mita@gmail.com>
Acked-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Aug 20, 2008
1 parent f3944d6 commit c82f296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/brd.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,8 @@ static int __init brd_init(void)
list_del(&brd->brd_list);
brd_free(brd);
}
unregister_blkdev(RAMDISK_MAJOR, "ramdisk");

unregister_blkdev(RAMDISK_MAJOR, "brd");
return -ENOMEM;
}

Expand Down

0 comments on commit c82f296

Please sign in to comment.