[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:
Alexey Dobriyan 2006-09-29 02:01:06 -07:00 • committed by Linus Torvalds
commit d826380b30

View file

@ -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;
}