]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/nsproxy.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[karo-tx-linux.git] / 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;