]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/generic_acl.c
->permission() sanitizing: pass MAY_NOT_BLOCK to ->check_acl()
[karo-tx-linux.git] / fs / generic_acl.c
index 8f26d1a5891226acc324798ed84bdeb27950145c..5976bb1fa4cac93d86ad2a866733ab6c435ddfe4 100644 (file)
@@ -192,7 +192,7 @@ generic_acl_chmod(struct inode *inode)
 int
 generic_check_acl(struct inode *inode, int mask, unsigned int flags)
 {
-       if (flags & IPERM_FLAG_RCU) {
+       if (mask & MAY_NOT_BLOCK) {
                if (!negative_cached_acl(inode, ACL_TYPE_ACCESS))
                        return -ECHILD;
        } else {