SUNRPC: Fix another issue with rpc_client_register()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 15 Jul 2013 02:57:50 +0000 (22:57 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 15 Jul 2013 14:15:54 +0000 (10:15 -0400)
Fix the error pathway if rpcauth_create() fails.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/clnt.c

index 9963584605c06e06992fc1d4d1c0a608b360a74b..74f6a704e37418cc9b8d4a9b6679f3dd8825da21 100644 (file)
@@ -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)