BUG in xs_tcp_setup_socket in 2.6.38-rc5
diff mbox

Message ID 1298411674.14956.25.camel@bwh-desktop
State New, archived
Headers show

Commit Message

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

Patch
diff mbox

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;
 	}