Commit 4332bdd3 authored by David Woodhouse's avatar David Woodhouse

AUDIT: Honour gfp_mask in audit_buffer_alloc()

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 5ac52f33
......@@ -611,13 +611,13 @@ static struct audit_buffer * audit_buffer_alloc(struct audit_context *ctx,
spin_unlock_irqrestore(&audit_freelist_lock, flags);
if (!ab) {
ab = kmalloc(sizeof(*ab), GFP_ATOMIC);
ab = kmalloc(sizeof(*ab), gfp_mask);
if (!ab)
goto err;
}
atomic_inc(&audit_backlog);
ab->skb = alloc_skb(AUDIT_BUFSIZ, GFP_ATOMIC);
ab->skb = alloc_skb(AUDIT_BUFSIZ, gfp_mask);
if (!ab->skb)
goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment