[NET]: Fix dentry leak in sys_accept().

This regression was added by commit:
39d8c1b6fb
("Do not lose accepted socket when -ENFILE/-EMFILE.")

This is based upon a patch from Andi Kleen.

Thanks to Adrian Bridgett for narrowing down a good test case, and to
Andi Kleen and Andrew Morton for eyeballing this code.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2006-04-01 01:00:14 -08:00
parent dbe5b4aaaf
commit 9606a21635
1 changed files with 1 additions and 1 deletions

View File

@ -1455,7 +1455,7 @@ out_put:
out:
return err;
out_fd:
put_filp(newfile);
fput(newfile);
put_unused_fd(newfd);
out_release:
sock_release(newsock);