]> err.no Git - linux-2.6/blobdiff - net/netlink/af_netlink.c
Pull bugfix into test branch
[linux-2.6] / net / netlink / af_netlink.c
index 3baafb10f8f39e23b049a299bbf0cef29cecafb5..276131fe56dddb140afcfaf15e46bd6ead0263fa 100644 (file)
@@ -699,7 +699,7 @@ static struct sock *netlink_getsockbypid(struct sock *ssk, u32 pid)
 
 struct sock *netlink_getsockbyfilp(struct file *filp)
 {
-       struct inode *inode = filp->f_dentry->d_inode;
+       struct inode *inode = filp->f_path.dentry->d_inode;
        struct sock *sock;
 
        if (!S_ISSOCK(inode->i_mode))