Unionfs: compat_ioctl fixes
authorErez Zadok <ezk@cs.sunysb.edu>
Wed, 4 May 2011 02:42:17 +0000 (22:42 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 12 Aug 2011 02:39:41 +0000 (22:39 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/commonfops.c

index 9f63b1c7b1178799c4e4ae755e48f5db60bea421..0a271f44da2633d0d63a7e156f6c88179fdf9176 100644 (file)
@@ -742,10 +742,8 @@ static long do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
        if (lower_file->f_op->unlocked_ioctl) {
                err = lower_file->f_op->unlocked_ioctl(lower_file, cmd, arg);
 #ifdef CONFIG_COMPAT
-       } else if (lower_file->f_op->ioctl) {
-               err = lower_file->f_op->compat_ioctl(
-                       lower_file->f_path.dentry->d_inode,
-                       lower_file, cmd, arg);
+       } else if (lower_file->f_op->compat_ioctl) {
+               err = lower_file->f_op->compat_ioctl(lower_file, cmd, arg);
 #endif
        }