git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vserver 2.0 rc7
[linux-2.6.git]
/
net
/
unix
/
garbage.c
diff --git
a/net/unix/garbage.c
b/net/unix/garbage.c
index
3d5e1a5
..
4bd95c8
100644
(file)
--- a/
net/unix/garbage.c
+++ b/
net/unix/garbage.c
@@
-100,7
+100,7
@@
static struct sock *unix_get_socket(struct file *filp)
/*
* Socket ?
*/
- if (
inode->i_sock
) {
+ if (
S_ISSOCK(inode->i_mode)
) {
struct socket * sock = SOCKET_I(inode);
struct sock * s = sock->sk;