]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SUNRPC: Remove extra xprt_put()
authorChuck Lever <chuck.lever@oracle.com>
Fri, 22 Mar 2013 16:52:59 +0000 (12:52 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 29 Mar 2013 19:46:10 +0000 (15:46 -0400)
commita18f4767b8c04f3629a0a02ca9fd261b043e6d9d
tree831862321b941fafd290a78effde662c776c5814
parent4edaa308888b4bd629fa025cc6d5b2bf1a2a51db
SUNRPC: Remove extra xprt_put()

While testing error cases where rpc_new_client() fails, I saw
some oopses.

If rpc_new_client() fails, it already invokes xprt_put().  Thus
__rpc_clone_client() does not need to invoke it again.

Introduced by commit 1b63a751 "SUNRPC: Refactor rpc_clone_client()"
Fri Sep 14, 2012.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: stable@vger.kernel.org [>=3.7]
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/clnt.c