diff options
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 09e287b1dc0e..854f4829e654 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -462,8 +462,10 @@ static int kauditd_thread(void *dummy) | |||
462 | flush_hold_queue(); | 462 | flush_hold_queue(); |
463 | 463 | ||
464 | skb = skb_dequeue(&audit_skb_queue); | 464 | skb = skb_dequeue(&audit_skb_queue); |
465 | wake_up(&audit_backlog_wait); | 465 | |
466 | if (skb) { | 466 | if (skb) { |
467 | if (skb_queue_len(&audit_skb_queue) <= audit_backlog_limit) | ||
468 | wake_up(&audit_backlog_wait); | ||
467 | if (audit_pid) | 469 | if (audit_pid) |
468 | kauditd_send_skb(skb); | 470 | kauditd_send_skb(skb); |
469 | else | 471 | else |