mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[PATCH] 9p: fix leak on error path
If register_filesystem() fails mux workqueue must be killed. Signed-off-by: Alexey Dobriyan <[email protected]> Cc: Eric Van Hensbergen <[email protected]> Cc: Ron Minnich <[email protected]> Cc: Latchesar Ionkov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
368bdb3d61
commit
d826380b30
1 changed files with 4 additions and 2 deletions
|
|
@ -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 a new issue