diff options
-rw-r--r-- | kernel/audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 4a697c73faec..00455a9cf027 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -486,7 +486,7 @@ static void audit_log_move(struct audit_buffer *ab) | |||
486 | if (ab->len == 0) | 486 | if (ab->len == 0) |
487 | return; | 487 | return; |
488 | 488 | ||
489 | skb = skb_peek(&ab->sklist); | 489 | skb = skb_peek_tail(&ab->sklist); |
490 | if (!skb || skb_tailroom(skb) <= ab->len + extra) { | 490 | if (!skb || skb_tailroom(skb) <= ab->len + extra) { |
491 | skb = alloc_skb(2 * ab->len + extra, GFP_ATOMIC); | 491 | skb = alloc_skb(2 * ab->len + extra, GFP_ATOMIC); |
492 | if (!skb) { | 492 | if (!skb) { |