From 7cc7cad4c403007e08e73a844f377eda080aecb4 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Tue, 3 May 2011 22:52:05 -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 d408369e3f0..60dce98f5bd 100644 --- a/fs/unionfs/commonfops.c +++ b/fs/unionfs/commonfops.c @@ -743,10 +743,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.43.0