diff options
Diffstat (limited to 'fs/compat_ioctl.c')
-rw-r--r-- | fs/compat_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index bcc3caf5d820..c81c958b3e1d 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c | |||
@@ -1177,7 +1177,7 @@ static int cdrom_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long ar | |||
1177 | static int vt_check(struct file *file) | 1177 | static int vt_check(struct file *file) |
1178 | { | 1178 | { |
1179 | struct tty_struct *tty; | 1179 | struct tty_struct *tty; |
1180 | struct inode *inode = file->f_dentry->d_inode; | 1180 | struct inode *inode = file->f_path.dentry->d_inode; |
1181 | 1181 | ||
1182 | if (file->f_op->ioctl != tty_ioctl) | 1182 | if (file->f_op->ioctl != tty_ioctl) |
1183 | return -EINVAL; | 1183 | return -EINVAL; |