aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-05-06 10:59:57 -0400
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-05-06 10:59:57 -0400
commit4332bdd332a2dca93dc3b1d017b2dd27d5c8cef3 (patch)
treea1152698b795a215ec572942836be058ae65ef51 /kernel/audit.c
parent5ac52f33b6f05fcb91a97124155183b779a4efdf (diff)
AUDIT: Honour gfp_mask in audit_buffer_alloc()
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 993e445418a7..b86007da8a3f 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -611,13 +611,13 @@ static struct audit_buffer * audit_buffer_alloc(struct audit_context *ctx,
611 spin_unlock_irqrestore(&audit_freelist_lock, flags); 611 spin_unlock_irqrestore(&audit_freelist_lock, flags);
612 612
613 if (!ab) { 613 if (!ab) {
614 ab = kmalloc(sizeof(*ab), GFP_ATOMIC); 614 ab = kmalloc(sizeof(*ab), gfp_mask);
615 if (!ab) 615 if (!ab)
616 goto err; 616 goto err;
617 } 617 }
618 atomic_inc(&audit_backlog); 618 atomic_inc(&audit_backlog);
619 619
620 ab->skb = alloc_skb(AUDIT_BUFSIZ, GFP_ATOMIC); 620 ab->skb = alloc_skb(AUDIT_BUFSIZ, gfp_mask);
621 if (!ab->skb) 621 if (!ab->skb)
622 goto err; 622 goto err;
623 623