]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ecryptfs: ->f_op is never NULL
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 2 Sep 2014 21:31:28 +0000 (17:31 -0400)
committerLuis Henriques <luis.henriques@canonical.com>
Wed, 18 Mar 2015 15:06:31 +0000 (15:06 +0000)
commit c2e3f5d5f4620bb6568bc559f712ce80222e20cb upstream.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[ luis: 3.16-stable, just to make 6d65261a09ad ("eCryptfs: don't pass
  fs-specific ioctl commands through") a clean cherry-pick ]
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
fs/ecryptfs/file.c

index a06ad2f7ed80a9db55c2de6f98e932d74eb0bc8c..de1111457b5efb4342cd7aa1951f3941330ce749 100644 (file)
@@ -315,7 +315,7 @@ ecryptfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
        struct file *lower_file = ecryptfs_file_to_lower(file);
        long rc = -ENOIOCTLCMD;
 
-       if (lower_file->f_op && lower_file->f_op->compat_ioctl)
+       if (lower_file->f_op->compat_ioctl)
                rc = lower_file->f_op->compat_ioctl(lower_file, cmd, arg);
        return rc;
 }