mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
AUDIT: Honour gfp_mask in audit_buffer_alloc()
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
5ac52f33b6
commit
4332bdd332
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue