summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-06-16 17:25:12 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-06-29 12:57:21 +0400
commite77e43003382e46c673c9f82b5f2df8058d3c527 (patch)
treef3e39a55a38f202bdcee0778e79520c172c996f5 /drivers
parent0b3fca1fd1499f0f5a7486d494f96538f2b7e5b9 (diff)
downloadlinux-e77e43003382e46c673c9f82b5f2df8058d3c527.tar.gz
linux-e77e43003382e46c673c9f82b5f2df8058d3c527.tar.bz2
linux-e77e43003382e46c673c9f82b5f2df8058d3c527.zip
more open-coded file_inode() calls
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/android/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c
index 9bd874789ce5..080abf2faf97 100644
--- a/drivers/staging/android/logger.c
+++ b/drivers/staging/android/logger.c
@@ -696,7 +696,7 @@ static long logger_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
ret = -EBADF;
break;
}
- if (!(in_egroup_p(file->f_dentry->d_inode->i_gid) ||
+ if (!(in_egroup_p(file_inode(file)->i_gid) ||
capable(CAP_SYSLOG))) {
ret = -EPERM;
break;