diff options
Diffstat (limited to 'security/selinux/ss/conditional.c')
-rw-r--r-- | security/selinux/ss/conditional.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/security/selinux/ss/conditional.c b/security/selinux/ss/conditional.c index d2737edba541..45b93a827c80 100644 --- a/security/selinux/ss/conditional.c +++ b/security/selinux/ss/conditional.c | |||
@@ -456,6 +456,10 @@ int cond_read_list(struct policydb *p, void *fp) | |||
456 | 456 | ||
457 | len = le32_to_cpu(buf[0]); | 457 | len = le32_to_cpu(buf[0]); |
458 | 458 | ||
459 | rc = avtab_alloc(&(p->te_cond_avtab), p->te_avtab.nel); | ||
460 | if (rc) | ||
461 | goto err; | ||
462 | |||
459 | for (i = 0; i < len; i++) { | 463 | for (i = 0; i < len; i++) { |
460 | node = kzalloc(sizeof(struct cond_node), GFP_KERNEL); | 464 | node = kzalloc(sizeof(struct cond_node), GFP_KERNEL); |
461 | if (!node) | 465 | if (!node) |