aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/xen-blkfront.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 4f2b46052976..60eed4bdd2e4 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -1500,7 +1500,9 @@ module_init(xlblk_init);
1500 1500
1501static void __exit xlblk_exit(void) 1501static void __exit xlblk_exit(void)
1502{ 1502{
1503 return xenbus_unregister_driver(&blkfront_driver); 1503 xenbus_unregister_driver(&blkfront_driver);
1504 unregister_blkdev(XENVBD_MAJOR, DEV_NAME);
1505 kfree(minors);
1504} 1506}
1505module_exit(xlblk_exit); 1507module_exit(xlblk_exit);
1506 1508