SUNRPC: fix xprt leak on xps allocation failure
authorJ. Bruce Fields <[email protected]>
Fri, 20 May 2016 21:07:17 +0000 (17:07 -0400)
committerJ. Bruce Fields <[email protected]>
Wed, 15 Jun 2016 14:32:25 +0000 (10:32 -0400)
commit1208fd569c07ab84aa5d024abd863267c2953b4a
tree39fccf3a8cd1e2d9af0c9f1321436952e12ec80b
parenteee930163c6a2507aa3b41edf8f7e3b7a2049769
SUNRPC: fix xprt leak on xps allocation failure

Callers of rpc_create_xprt expect it to put the xprt on success and
failure.

Cc: [email protected]
Signed-off-by: J. Bruce Fields <[email protected]>
Acked-by: Trond Myklebust <[email protected]>
net/sunrpc/clnt.c