From e762e5d78e3f97177293274a6c930f23523061e3 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Tue, 3 May 2011 22:42:17 -0400 Subject: [PATCH] Unionfs: compat_ioctl fixes Signed-off-by: Erez Zadok --- fs/unionfs/commonfops.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c index 9f63b1c7b11..0a271f44da2 100644 --- a/fs/unionfs/commonfops.c +++ b/fs/unionfs/commonfops.c @@ -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 } -- 2.34.1