AUDIT: Honour gfp_mask in audit_buffer_alloc()
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>
Fri, 6 May 2005 14:59:57 +0000 (15:59 +0100)
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>
Fri, 6 May 2005 14:59:57 +0000 (15:59 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
kernel/audit.c

index 993e445418a71f8eb272ef56e9d6152caf7f8037..b86007da8a3fd09931a17caa014c2aace8439fe8 100644 (file)
@@ -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;