Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201886
b: refs/heads/master
c: 5241c10
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and James Morris committed Aug 2, 2010
1 parent 89157ca commit 80bd63d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e0bd4cba4460bff64fb07cfb07849cdfd4d325a
refs/heads/master: 5241c1074f6e2f2276d45d857eb5d19fbdc2e4b2
10 changes: 6 additions & 4 deletions trunk/security/selinux/ss/conditional.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ int cond_read_list(struct policydb *p, void *fp)
int rc;

rc = next_entry(buf, fp, sizeof buf);
if (rc < 0)
return -1;
if (rc)
return rc;

len = le32_to_cpu(buf[0]);

Expand All @@ -455,11 +455,13 @@ int cond_read_list(struct policydb *p, void *fp)
goto err;

for (i = 0; i < len; i++) {
rc = -ENOMEM;
node = kzalloc(sizeof(struct cond_node), GFP_KERNEL);
if (!node)
goto err;

if (cond_read_node(p, node, fp) != 0)
rc = cond_read_node(p, node, fp);
if (rc)
goto err;

if (i == 0)
Expand All @@ -472,7 +474,7 @@ int cond_read_list(struct policydb *p, void *fp)
err:
cond_list_destroy(p->cond_list);
p->cond_list = NULL;
return -1;
return rc;
}

/* Determine whether additional permissions are granted by the conditional
Expand Down

0 comments on commit 80bd63d

Please sign in to comment.