summaryrefslogtreecommitdiffstats
path: root/kernel/audit_watch.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-12-04 18:24:56 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2016-12-04 18:29:28 -0500
commit450630975da9e7dffe540753e169dc4da5fe7c29 (patch)
tree69e584ee757fa177d64db1c3c53d816bdab05afb /kernel/audit_watch.c
parente5517c2a5a49ed5e99047008629f1cd60246ea0e (diff)
downloadlinux-stable-450630975da9e7dffe540753e169dc4da5fe7c29.tar.gz
linux-stable-450630975da9e7dffe540753e169dc4da5fe7c29.tar.bz2
linux-stable-450630975da9e7dffe540753e169dc4da5fe7c29.zip
don't open-code file_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/audit_watch.c')
-rw-r--r--kernel/audit_watch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c
index 0d302a87f21b..99401efef7ac 100644
--- a/kernel/audit_watch.c
+++ b/kernel/audit_watch.c
@@ -548,8 +548,8 @@ int audit_exe_compare(struct task_struct *tsk, struct audit_fsnotify_mark *mark)
exe_file = get_task_exe_file(tsk);
if (!exe_file)
return 0;
- ino = exe_file->f_inode->i_ino;
- dev = exe_file->f_inode->i_sb->s_dev;
+ ino = file_inode(exe_file)->i_ino;
+ dev = file_inode(exe_file)->i_sb->s_dev;
fput(exe_file);
return audit_mark_compare(mark, ino, dev);
}