mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -251,7 +251,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;
|
||||
|
Reference in New Issue
Block a user