David S. Miller 4387ff75f2 [NET]: Fix net/socket.c warnings.
GCC (correctly) says:

net/socket.c: In function ‘sys_sendto’:
net/socket.c:1510: warning: ‘err’ may be used uninitialized in this function
net/socket.c: In function ‘sys_recvfrom’:
net/socket.c:1571: warning: ‘err’ may be used uninitialized in this function

sock_from_file() either returns filp->private_data or it
sets *err and returns NULL.

Callers return "err" on NULL, but filp->private_data could
be NULL.

Some minor rearrangements of error handling in sys_sendto
and sys_recvfrom solves the issue.

Signed-off-by: David S. Miller <davem@davemloft.net>
2007-02-08 15:06:08 -08:00
..
2007-02-08 12:38:53 -08:00
2007-02-08 12:39:06 -08:00
2007-02-08 14:16:46 -08:00
2007-02-08 14:16:46 -08:00
2007-02-08 14:16:46 -08:00
2006-11-05 14:11:25 -08:00
2007-02-08 12:39:08 -08:00
2007-02-08 13:51:54 -08:00
2006-08-05 21:15:58 -07:00
2006-12-02 21:21:23 -08:00
2007-01-03 18:38:15 -08:00
2006-12-08 08:28:50 -08:00
2007-02-08 15:06:08 -08:00
2005-04-16 15:20:36 -07:00