diff options
author | Neil Horman <nhorman@tuxdriver.com> | 2010-07-20 02:45:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-20 16:28:05 -0400 |
commit | 70d4bf6d467a330ccc947df9b2608e329d9e7708 (patch) | |
tree | 477dff26ac865f785e9197065e4807daeb89958c /kernel/audit.c | |
parent | 4b706372f18de53970e4c6887a96459590fef80a (diff) |
drop_monitor: convert some kfree_skb call sites to consume_skb
Convert a few calls from kfree_skb to consume_skb
Noticed while I was working on dropwatch that I was detecting lots of internal
skb drops in several places. While some are legitimate, several were not,
freeing skbs that were at the end of their life, rather than being discarded due
to an error. This patch converts those calls sites from using kfree_skb to
consume_skb, which quiets the in-kernel drop_monitor code from detecting them as
drops. Tested successfully by myself
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/audit.c')
-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 c71bd26631a2..8296aa516c5a 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -407,7 +407,7 @@ static void kauditd_send_skb(struct sk_buff *skb) | |||
407 | audit_hold_skb(skb); | 407 | audit_hold_skb(skb); |
408 | } else | 408 | } else |
409 | /* drop the extra reference if sent ok */ | 409 | /* drop the extra reference if sent ok */ |
410 | kfree_skb(skb); | 410 | consume_skb(skb); |
411 | } | 411 | } |
412 | 412 | ||
413 | static int kauditd_thread(void *dummy) | 413 | static int kauditd_thread(void *dummy) |