Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192449
b: refs/heads/master
c: b3139bb
h: refs/heads/master
i:
  192447: 62b0433
v: v3
  • Loading branch information
Julia Lawall authored and James Morris committed May 16, 2010
1 parent 5e55704 commit af5b587
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 9e4b50e93786d00c703f16ed46e6a4029c0dfdd1
refs/heads/master: b3139bbc52762268769e7af842aade0e64372433
3 changes: 1 addition & 2 deletions trunk/security/selinux/ss/policydb.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,11 @@ static int roles_init(struct policydb *p)
rc = -EINVAL;
goto out_free_role;
}
key = kmalloc(strlen(OBJECT_R) + 1, GFP_KERNEL);
key = kstrdup(OBJECT_R, GFP_KERNEL);
if (!key) {
rc = -ENOMEM;
goto out_free_role;
}
strcpy(key, OBJECT_R);
rc = hashtab_insert(p->p_roles.table, key, role);
if (rc)
goto out_free_key;
Expand Down

0 comments on commit af5b587

Please sign in to comment.