new helper: file_inode(file)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -107,7 +107,7 @@ static long d7s_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
int error = 0;
|
||||
u8 ireg = 0;
|
||||
|
||||
if (D7S_MINOR != iminor(file->f_path.dentry->d_inode))
|
||||
if (D7S_MINOR != iminor(file_inode(file)))
|
||||
return -ENODEV;
|
||||
|
||||
mutex_lock(&d7s_mutex);
|
||||
|
Reference in New Issue
Block a user