summaryrefslogtreecommitdiffstats
path: root/net/core/scm.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-07-20 14:56:40 +0000
committerRalf Baechle <ralf@linux-mips.org>1997-07-20 14:56:40 +0000
commite308faf24f68e262d92d294a01ddca7a17e76762 (patch)
tree22c47cb315811834861f013067878ff664e95abd /net/core/scm.c
parent30c6397ce63178fcb3e7963ac247f0a03132aca9 (diff)
Sync with Linux 2.1.46.
Diffstat (limited to 'net/core/scm.c')
-rw-r--r--net/core/scm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/scm.c b/net/core/scm.c
index d88ab0ae7..e5fa793a7 100644
--- a/net/core/scm.c
+++ b/net/core/scm.c
@@ -172,9 +172,9 @@ int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *p)
if (acc_fd < 0 || acc_fd >= NR_OPEN ||
(file=current->files->fd[acc_fd])==NULL)
return -EBADF;
- if (!file->f_inode || !file->f_inode->i_sock)
+ if (!file->f_dentry->d_inode || !file->f_dentry->d_inode->i_sock)
return -ENOTSOCK;
- p->sock = &file->f_inode->u.socket_i;
+ p->sock = &file->f_dentry->d_inode->u.socket_i;
if (p->sock->state != SS_UNCONNECTED)
return -EINVAL;
}