]> git.itanic.dy.fi Git - linux-stable/commit
Fix error returns in sys_socketpair()
authorDavid Miller <davem@davemloft.net>
Tue, 13 Nov 2007 08:02:56 +0000 (00:02 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Nov 2007 17:25:54 +0000 (09:25 -0800)
commit2c41b3c3f54193a93284ca314784d1c6da39ecdc
tree2472146baf4f5b836b6cf29d1063756350f2c6ff
parentd6eb5c86ed40fe57e411c4ee72b38d0a83642302
Fix error returns in sys_socketpair()

patch bf3c23d171e35e6e168074a1514b0acd59cfd81a in mainline.

[NET]: Fix error reporting in sys_socketpair().

If either of the two sock_alloc_fd() calls fail, we
forget to update 'err' and thus we'll erroneously
return zero in these cases.

Based upon a report and patch from Rich Paul, and
commentary from Chuck Ebbert.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/socket.c