Commit ae4538c2 authored by Al Viro's avatar Al Viro Committed by Luis Henriques

ecryptfs: ->f_op is never NULL

commit c2e3f5d5 upstream.
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
[ luis: 3.16-stable, just to make 6d65261a ("eCryptfs: don't pass
  fs-specific ioctl commands through") a clean cherry-pick ]
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 4795f346
...@@ -315,7 +315,7 @@ ecryptfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -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); struct file *lower_file = ecryptfs_file_to_lower(file);
long rc = -ENOIOCTLCMD; 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); rc = lower_file->f_op->compat_ioctl(lower_file, cmd, arg);
return rc; return rc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment