commit | 5c41c8a713da7874bd79196696a275beeb11821e | [log] [tgz] |
---|---|---|
author | Kent Overstreet <kmo@daterainc.com> | Mon Jul 08 17:53:26 2013 -0700 |
committer | Kent Overstreet <kmo@daterainc.com> | Wed Jan 08 13:05:10 2014 -0800 |
tree | 5db4d73cdaad1d55b29ebc46e6909fbbde9904f4 | |
parent | c78afc6261b09f74abff8c0719b80692a4959768 [diff] |
bcache: Trivial error handling fix Signed-off-by: Kent Overstreet <kmo@daterainc.com>
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index e363efc..677a604 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c
@@ -2065,7 +2065,8 @@ kobject_put(bcache_kobj); if (bcache_wq) destroy_workqueue(bcache_wq); - unregister_blkdev(bcache_major, "bcache"); + if (bcache_major) + unregister_blkdev(bcache_major, "bcache"); unregister_reboot_notifier(&reboot); }