]> Pileus Git - ~andy/linux/blobdiff - kernel/nsproxy.c
drm/i915: Reject fence stride=0 on gen4+
[~andy/linux] / kernel / nsproxy.c
index b781e66a8f2c4fca3943f2441f7d19296128f525..afc0456f227abe76788ac666f7c1239759b5096e 100644 (file)
@@ -250,7 +250,7 @@ SYSCALL_DEFINE2(setns, int, fd, int, nstype)
                return PTR_ERR(file);
 
        err = -EINVAL;
-       ei = PROC_I(file->f_dentry->d_inode);
+       ei = PROC_I(file_inode(file));
        ops = ei->ns_ops;
        if (nstype && (ops->type != nstype))
                goto out;