diff options
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r-- | net/netlink/af_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 3baafb10f8f3..276131fe56dd 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -699,7 +699,7 @@ static struct sock *netlink_getsockbypid(struct sock *ssk, u32 pid) | |||
699 | 699 | ||
700 | struct sock *netlink_getsockbyfilp(struct file *filp) | 700 | struct sock *netlink_getsockbyfilp(struct file *filp) |
701 | { | 701 | { |
702 | struct inode *inode = filp->f_dentry->d_inode; | 702 | struct inode *inode = filp->f_path.dentry->d_inode; |
703 | struct sock *sock; | 703 | struct sock *sock; |
704 | 704 | ||
705 | if (!S_ISSOCK(inode->i_mode)) | 705 | if (!S_ISSOCK(inode->i_mode)) |