This is a note to let you know that I've just added the patch titled
sunrpc: Propagate errors from xs_bind() through xs_create_sock()
to the 2.6.37-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
sunrpc-propagate-errors-from-xs_bind-through-xs_create_sock.patch
and it can be found in the queue-2.6.37 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 4cea288aaf0e11647880cc487350b1dc45d9febc Mon Sep 17 00:00:00 2001
From: Ben Hutchings <[email protected]>
Date: Tue, 22 Feb 2011 21:54:34 +0000
Subject: sunrpc: Propagate errors from xs_bind() through xs_create_sock()
From: Ben Hutchings <[email protected]>
commit 4cea288aaf0e11647880cc487350b1dc45d9febc upstream.
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 <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
net/sunrpc/xprtsock.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1631,7 +1631,8 @@ static struct socket *xs_create_sock(str
}
xs_reclassify_socket(family, sock);
- if (xs_bind(transport, sock)) {
+ err = xs_bind(transport, sock);
+ if (err) {
sock_release(sock);
goto out;
}
Patches currently in stable-queue which might be from [email protected]
are
queue-2.6.37/sunrpc-propagate-errors-from-xs_bind-through-xs_create_sock.patch
_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable