diff mbox

BUG in xs_tcp_setup_socket in 2.6.38-rc5

Message ID 1298411674.14956.25.camel@bwh-desktop (mailing list archive)
State New, archived
Headers show

Commit Message

Ben Hutchings Feb. 22, 2011, 9:54 p.m. UTC
None
diff mbox

Patch

diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index c431f5a..be96d42 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1631,7 +1631,8 @@  static struct socket *xs_create_sock(struct rpc_xprt *xprt,
 	}
 	xs_reclassify_socket(family, sock);
 
-	if (xs_bind(transport, sock)) {
+	err = xs_bind(transport, sock);
+	if (err) {
 		sock_release(sock);
 		goto out;
 	}