mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
bcache: Trivial error handling fix
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
This commit is contained in:
parent
c78afc6261
commit
5c41c8a713
1 changed files with 2 additions and 1 deletions
|
|
@ -2065,7 +2065,8 @@ static void bcache_exit(void)
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue