]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NET]: sanitize kernel_accept() error path
authorTony Battersby <tonyb@cybernetics.com>
Thu, 11 Oct 2007 04:09:04 +0000 (21:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2007 04:09:04 +0000 (21:09 -0700)
commitfa8705b00aeca19d91a1437b8a5cf865999b28f6
treed91cf4fe1b632836d286a1216b4f821903b8d4f5
parent414c66e00e9fb4572e38bd14e6cc570eae8c5a61
[NET]: sanitize kernel_accept() error path

If kernel_accept() returns an error, it may pass back a pointer to
freed memory (which the caller should ignore).  Make it pass back NULL
instead for better safety.

Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/socket.c