提交 d826380b 编写于 作者: A Alexey Dobriyan 提交者: Linus Torvalds

[PATCH] 9p: fix leak on error path

If register_filesystem() fails mux workqueue must be killed.
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Cc: Ron Minnich <rminnich@lanl.gov>
Cc: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 368bdb3d
......@@ -460,8 +460,10 @@ static int __init init_v9fs(void)
ret = v9fs_mux_global_init();
if (!ret)
ret = register_filesystem(&v9fs_fs_type);
return ret;
ret = register_filesystem(&v9fs_fs_type);
if (!ret)
v9fs_mux_global_exit();
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册