Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

AUDIT: Honour gfp_mask in audit_buffer_alloc()

parent 5ac52f33
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;