OSDN Git Service

Merge tag 'for-linus-20130301' of git://git.infradead.org/linux-mtd
[uclinux-h8/linux.git] / fs / cifs / ioctl.c
index fd5009d..6c9f121 100644 (file)
@@ -30,7 +30,7 @@
 
 long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
 {
-       struct inode *inode = filep->f_dentry->d_inode;
+       struct inode *inode = file_inode(filep);
        int rc = -ENOTTY; /* strange error - but the precedent */
        unsigned int xid;
        struct cifs_sb_info *cifs_sb;