aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index ec2e5656b44..ef00b984fb2 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -235,7 +235,7 @@ static int acl_permission_check(struct inode *inode, int mask)
235 if (current_user_ns() != inode_userns(inode)) 235 if (current_user_ns() != inode_userns(inode))
236 goto other_perms; 236 goto other_perms;
237 237
238 if (current_fsuid() == inode->i_uid) 238 if (likely(current_fsuid() == inode->i_uid))
239 mode >>= 6; 239 mode >>= 6;
240 else { 240 else {
241 if (IS_POSIXACL(inode) && (mode & S_IRWXG)) { 241 if (IS_POSIXACL(inode) && (mode & S_IRWXG)) {