Commit 1540c5d3 authored by Trond Myklebust's avatar Trond Myklebust

SUNRPC: Fix another issue with rpc_client_register()

Fix the error pathway if rpcauth_create() fails.
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent ad81f054
...@@ -309,6 +309,7 @@ static int rpc_client_register(const struct rpc_create_args *args, ...@@ -309,6 +309,7 @@ static int rpc_client_register(const struct rpc_create_args *args,
return 0; return 0;
err_auth: err_auth:
pipefs_sb = rpc_get_sb_net(net); pipefs_sb = rpc_get_sb_net(net);
rpc_unregister_client(clnt);
__rpc_clnt_remove_pipedir(clnt); __rpc_clnt_remove_pipedir(clnt);
out: out:
if (pipefs_sb) if (pipefs_sb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment