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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user