summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-04-01 01:00:14 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-04-01 01:00:14 -0800
commit9606a21635cec077e1928273751b44ecc824a49d (patch)
tree64a510c5042771facd6a76e469850e3d70b29017 /net
parentdbe5b4aaafc715b12dbbea309d3d17958d01fd65 (diff)
downloadlwn-9606a21635cec077e1928273751b44ecc824a49d.tar.gz
lwn-9606a21635cec077e1928273751b44ecc824a49d.zip
[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')
-rw-r--r--net/socket.c2
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:
out:
return err;
out_fd:
- put_filp(newfile);
+ fput(newfile);
put_unused_fd(newfd);
out_release:
sock_release(newsock);