提交 1540c5d3 编写于 作者: T Trond Myklebust

SUNRPC: Fix another issue with rpc_client_register()

Fix the error pathway if rpcauth_create() fails.
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 ad81f054
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册