diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-04-01 04:00:14 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-04-01 04:00:14 -0500 |
commit | 9606a21635cec077e1928273751b44ecc824a49d (patch) | |
tree | 64a510c5042771facd6a76e469850e3d70b29017 /net/socket.c | |
parent | dbe5b4aaafc715b12dbbea309d3d17958d01fd65 (diff) |
[NET]: Fix dentry leak in sys_accept().
This regression was added by commit:
39d8c1b6fbaeb8d6adec4a8c08365cc9eaca6ae4
("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>
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c index b13042f68c02..bbc80780f45a 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -1455,7 +1455,7 @@ out_put: | |||
1455 | out: | 1455 | out: |
1456 | return err; | 1456 | return err; |
1457 | out_fd: | 1457 | out_fd: |
1458 | put_filp(newfile); | 1458 | fput(newfile); |
1459 | put_unused_fd(newfd); | 1459 | put_unused_fd(newfd); |
1460 | out_release: | 1460 | out_release: |
1461 | sock_release(newsock); | 1461 | sock_release(newsock); |