projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbe5b4a
)
[NET]: Fix dentry leak in sys_accept().
author
David S. Miller
<davem@sunset.davemloft.net>
Sat, 1 Apr 2006 09:00:14 +0000
(
01:00
-0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Sat, 1 Apr 2006 09:00:14 +0000
(
01:00
-0800)
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>
net/socket.c
patch
|
blob
|
blame
|
history
diff --git
a/net/socket.c
b/net/socket.c
index b13042f68c022e9ef6e8647ad35055e39b5f52ef..bbc80780f45afa84b073aff901640337b4dcfe95 100644
(file)
--- 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);