guard page for stacks that grow upwards
[linux-2.6.git] / security / tomoyo / util.c
index 12a768e..9bfc1ee 100644 (file)
@@ -26,7 +26,7 @@ bool tomoyo_policy_loaded;
  * The @src is updated to point the first character after the value
  * on success.
  */
-u8 tomoyo_parse_ulong(unsigned long *result, char **str)
+static u8 tomoyo_parse_ulong(unsigned long *result, char **str)
 {
        const char *cp = *str;
        char *ep;
@@ -911,7 +911,7 @@ bool tomoyo_domain_quota_is_ok(struct tomoyo_request_info *r)
        if (!domain)
                return true;
        list_for_each_entry_rcu(ptr, &domain->acl_info_list, list) {
-               if (!ptr->is_deleted)
+               if (ptr->is_deleted)
                        continue;
                switch (ptr->type) {
                        u16 perm;