diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-07-15 02:57:50 (GMT) |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-07-15 14:15:54 (GMT) |
commit | 1540c5d3cbf7670eb68a0d02611ec73e5604a91a (patch) | |
tree | 831cbe4fd73959db7966196d2e1e69c8f1938e9b /net/sunrpc | |
parent | ad81f0545ef01ea651886dddac4bef6cec930092 (diff) | |
download | linux-fsl-qoriq-1540c5d3cbf7670eb68a0d02611ec73e5604a91a.tar.xz |
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>
Diffstat (limited to 'net/sunrpc')
-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 9963584..74f6a70 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) |