[NET]: Do not lose accepted socket when -ENFILE/-EMFILE.
authorDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 01:13:49 +0000 (17:13 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 01:13:49 +0000 (17:13 -0800)
commit39d8c1b6fbaeb8d6adec4a8c08365cc9eaca6ae4
treee604ee025c6711caca1bf6ec2a406197bf5be843
parent77d2ca350018c507815f5d38a40ffb597eb9ae25
[NET]: Do not lose accepted socket when -ENFILE/-EMFILE.

Try to allocate the struct file and an unused file
descriptor before we try to pull a newly accepted
socket out of the protocol layer.

Based upon a patch by Prassana Meda.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/socket.c