summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/soft-interface.c
diff options
context:
space:
mode:
authorSven Eckelmann2016-07-17 21:04:00 +0200
committerSimon Wunderlich2016-10-30 11:11:36 +0100
commitbd687fe41991611a6904b7cbc1d596f687584ebb (patch)
tree515668dc83bd3a60a3b2a7acd4f5a28ea76e8111 /net/batman-adv/soft-interface.c
parentbatman-adv: Simple (re)broadcast avoidance (diff)
downloadkernel-qcow2-linux-bd687fe41991611a6904b7cbc1d596f687584ebb.tar.gz
kernel-qcow2-linux-bd687fe41991611a6904b7cbc1d596f687584ebb.tar.xz
kernel-qcow2-linux-bd687fe41991611a6904b7cbc1d596f687584ebb.zip
batman-adv: use consume_skb for non-dropped packets
kfree_skb assumes that an skb is dropped after an failure and notes that. consume_skb should be used in non-failure situations. Such information is important for dropmonitor netlink which tells how many packets were dropped and where this drop happened. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r--net/batman-adv/soft-interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c
index 109f53b8e159..2f0304ec459c 100644
--- a/net/batman-adv/soft-interface.c
+++ b/net/batman-adv/soft-interface.c
@@ -362,7 +362,7 @@ send:
/* a copy is stored in the bcast list, therefore removing
* the original skb.
*/
- kfree_skb(skb);
+ consume_skb(skb);
/* unicast packet */
} else {