Skip to content

Commit

Permalink
AUDIT: Honour gfp_mask in audit_buffer_alloc()
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed May 6, 2005
1 parent 5ac52f3 commit 4332bdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4332bdd

Please sign in to comment.