diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 4a98bf154d88..fc13609a354a 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -186,7 +186,7 @@ static int check_acl(struct inode *inode, int mask) | |||
186 | /* no ->get_acl() calls in RCU mode... */ | 186 | /* no ->get_acl() calls in RCU mode... */ |
187 | if (acl == ACL_NOT_CACHED) | 187 | if (acl == ACL_NOT_CACHED) |
188 | return -ECHILD; | 188 | return -ECHILD; |
189 | return posix_acl_permission(inode, acl, mask); | 189 | return posix_acl_permission(inode, acl, mask & ~MAY_NOT_BLOCK); |
190 | } | 190 | } |
191 | 191 | ||
192 | acl = get_cached_acl(inode, ACL_TYPE_ACCESS); | 192 | acl = get_cached_acl(inode, ACL_TYPE_ACCESS); |