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>
This commit is contained in:
parent
ad81f0545e
commit
1540c5d3cb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue