X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fcompat_ioctl.c;h=c81c958b3e1d00c4ad22909b43d1d084961aadd3;hb=f99c6bb6e2e9c35bd3dc0b1d0faa28bd6970930d;hp=bcc3caf5d8209651de43e34fd95f3297bc59202b;hpb=6ee7e78e7c78d871409ad4df30551c9355be7d0e;p=linux-2.6 diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index bcc3caf5d8..c81c958b3e 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 static int vt_check(struct file *file) { struct tty_struct *tty; - struct inode *inode = file->f_dentry->d_inode; + struct inode *inode = file->f_path.dentry->d_inode; if (file->f_op->ioctl != tty_ioctl) return -EINVAL;