projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sunrpc: fix error path in module_init
[powerpc.git]
/
net
/
sunrpc
/
sunrpc_syms.c
diff --git
a/net/sunrpc/sunrpc_syms.c
b/net/sunrpc/sunrpc_syms.c
index
43ecf62
..
0d35bc7
100644
(file)
--- a/
net/sunrpc/sunrpc_syms.c
+++ b/
net/sunrpc/sunrpc_syms.c
@@
-146,9
+146,11
@@
init_sunrpc(void)
int err = register_rpc_pipefs();
if (err)
goto out;
- err = rpc_init_mempool() != 0;
- if (err)
+ err = rpc_init_mempool();
+ if (err) {
+ unregister_rpc_pipefs();
goto out;
+ }
#ifdef RPC_DEBUG
rpc_register_sysctl();
#endif