git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NET]: sockfd_lookup_light() returns random error for -EBADFD
[safe/jmp/linux-2.6]
/
net
/
socket.c
diff --git
a/net/socket.c
b/net/socket.c
index
23898f4
..
0ce12df
100644
(file)
--- a/
net/socket.c
+++ b/
net/socket.c
@@
-490,6
+490,7
@@
static struct socket *sockfd_lookup_light(int fd, int *err, int *fput_needed)
struct file *file;
struct socket *sock;
+ *err = -EBADF;
file = fget_light(fd, fput_needed);
if (file) {
sock = sock_from_file(file, err);