SUNRPC: Use the already looked-up xprt in rpcb_getport_async()
authorBryan Schumaker <bjschuma@netapp.com>
Tue, 27 Mar 2012 17:46:32 +0000 (13:46 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 27 Mar 2012 20:33:35 +0000 (16:33 -0400)
commit864cf9bf99f62d2095c8e6cc3a87af80b263984e
tree212665144bc8140dc177c41954d0eb691b602d83
parentd44fc387997c0750125cfb0c2c803a3171b649f4
SUNRPC: Use the already looked-up xprt in rpcb_getport_async()

rbcb_getport_async() was looking up the rpc_xprt (reference++) and then
later looking it up again (reference++) to pass through the
rpcbind_args.  The xprt would only be dereferenced once, when we were
done with the rpcbind_args (reference--).  This leaves an extra
reference to the transport that would never go away.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/rpcb_clnt.c