]> git.ipfire.org Git - people/ms/linux.git/blobdiff - drivers/scsi/3w-xxxx.c
new helper: file_inode(file)
[people/ms/linux.git] / drivers / scsi / 3w-xxxx.c
index 62071d2fc1ce3a4e457edce2862b5d5da0bbf41f..56662ae03dea65adad90665acc1e55690a192fea 100644 (file)
@@ -889,7 +889,7 @@ static long tw_chrdev_ioctl(struct file *file, unsigned int cmd, unsigned long a
        unsigned long flags;
        unsigned int data_buffer_length = 0;
        unsigned long data_buffer_length_adjusted = 0;
-       struct inode *inode = file->f_dentry->d_inode;
+       struct inode *inode = file_inode(file);
        unsigned long *cpu_addr;
        long timeout;
        TW_New_Ioctl *tw_ioctl;