diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-07-14 22:57:50 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-07-15 10:15:54 -0400 |
commit | 1540c5d3cbf7670eb68a0d02611ec73e5604a91a (patch) | |
tree | 831cbe4fd73959db7966196d2e1e69c8f1938e9b | |
parent | ad81f0545ef01ea651886dddac4bef6cec930092 (diff) | |
download | linux-1540c5d3cbf7670eb68a0d02611ec73e5604a91a.tar.bz2 |
SUNRPC: Fix another issue with rpc_client_register()
Fix the error pathway if rpcauth_create() fails.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r-- | net/sunrpc/clnt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 9963584605c0..74f6a704e374 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -309,6 +309,7 @@ static int rpc_client_register(const struct rpc_create_args *args, return 0; err_auth: pipefs_sb = rpc_get_sb_net(net); + rpc_unregister_client(clnt); __rpc_clnt_remove_pipedir(clnt); out: if (pipefs_sb) |