SUNRPC: destroy freshly allocated transport in case of sockaddr init error
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Thu, 10 Nov 2011 11:33:23 +0000 (14:33 +0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 10 Nov 2011 19:50:07 +0000 (14:50 -0500)
commit2aa13531bbbc6582874bedfcd853e1058b0fb4f9
tree6dc0ad696b49bdf6f68382900775a19fb289bf25
parenta6f498a891c730327645a7afa10c5ae977de6fd8
SUNRPC: destroy freshly allocated transport in case of sockaddr init error

Otherwise we will leak xprt structure and struct net reference.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xprtsock.c