aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/super.c
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2013-07-08 20:53:26 -0400
committerKent Overstreet <kmo@daterainc.com>2014-01-08 16:05:10 -0500
commit5c41c8a713da7874bd79196696a275beeb11821e (patch)
tree5db4d73cdaad1d55b29ebc46e6909fbbde9904f4 /drivers/md/bcache/super.c
parentc78afc6261b09f74abff8c0719b80692a4959768 (diff)
bcache: Trivial error handling fix
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/super.c')
-rw-r--r--drivers/md/bcache/super.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index e363efcf2b76..677a604e7f3f 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -2065,7 +2065,8 @@ static void bcache_exit(void)
2065 kobject_put(bcache_kobj); 2065 kobject_put(bcache_kobj);
2066 if (bcache_wq) 2066 if (bcache_wq)
2067 destroy_workqueue(bcache_wq); 2067 destroy_workqueue(bcache_wq);
2068 unregister_blkdev(bcache_major, "bcache"); 2068 if (bcache_major)
2069 unregister_blkdev(bcache_major, "bcache");
2069 unregister_reboot_notifier(&reboot); 2070 unregister_reboot_notifier(&reboot);
2070} 2071}
2071 2072