Commit d826380b authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

[PATCH] 9p: fix leak on error path

If register_filesystem() fails mux workqueue must be killed.
Signed-off-by: default avatarAlexey 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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 368bdb3d
...@@ -460,8 +460,10 @@ static int __init init_v9fs(void) ...@@ -460,8 +460,10 @@ static int __init init_v9fs(void)
ret = v9fs_mux_global_init(); ret = v9fs_mux_global_init();
if (!ret) if (!ret)
ret = register_filesystem(&v9fs_fs_type); return ret;
ret = register_filesystem(&v9fs_fs_type);
if (!ret)
v9fs_mux_global_exit();
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment