forked from Minki/linux
[PATCH] 9p: fix leak on error path
If register_filesystem() fails mux workqueue must be killed. Signed-off-by: Alexey 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: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
368bdb3d61
commit
d826380b30
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user