提交 5c41c8a7 编写于 作者: K Kent Overstreet

bcache: Trivial error handling fix

Signed-off-by: NKent Overstreet <kmo@daterainc.com>
上级 c78afc62
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册