sunrpc: Propagate errors from xs_bind() through xs_create_sock()
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 22 Feb 2011 21:54:34 +0000 (21:54 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 10 Mar 2011 20:04:58 +0000 (15:04 -0500)
commit4cea288aaf0e11647880cc487350b1dc45d9febc
tree6ea19d6d0b7b833f39077941a795f83b81448b36
parent3fa0b4e201d254b52a251fa348bd53e53000cff6
sunrpc: Propagate errors from xs_bind() through xs_create_sock()

xs_create_sock() is supposed to return a pointer or an ERR_PTR-encoded
error, but it currently returns 0 if xs_bind() fails.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Cc: stable@kernel.org [v2.6.37]
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xprtsock.c