[PATCH] RPC: Make rpc_create_client() destroy the transport on failure.
[linux-2.6.git] / fs / lockd / mon.c
index 6fc1bebeec1df16419881b2018dbed2616ad5c15..81b5e7778d70c88e8bc4359ec5595598a80c9e07 100644 (file)
@@ -120,15 +120,14 @@ nsm_create(void)
                                &nsm_program, SM_VERSION,
                                RPC_AUTH_NULL);
        if (IS_ERR(clnt))
-               goto out_destroy;
+               goto out_err;
        clnt->cl_softrtry = 1;
        clnt->cl_chatty   = 1;
        clnt->cl_oneshot  = 1;
        xprt->resvport = 1;     /* NSM requires a reserved port */
        return clnt;
 
-out_destroy:
-       xprt_destroy(xprt);
+out_err:
        return clnt;
 }