Message ID | dcbe18c8-a7e3-b26e-a95b-2d3cc2531081@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/security/integrity/ima/ima_queue.c b/security/integrity/ima/ima_queue.c index a02a86d51102..3b60e72aecb2 100644 --- a/security/integrity/ima/ima_queue.c +++ b/security/integrity/ima/ima_queue.c @@ -100,10 +100,9 @@ static int ima_add_digest_entry(struct ima_template_entry *entry, unsigned int key; qe = kmalloc(sizeof(*qe), GFP_KERNEL); - if (qe == NULL) { - pr_err("OUT OF MEMORY ERROR creating queue entry\n"); + if (!qe) return -ENOMEM; - } + qe->entry = entry; INIT_LIST_HEAD(&qe->later);