batman-adv: fix skb deref after free
authorFlorian Westphal <fw@strlen.de>
Tue, 10 May 2016 21:17:59 +0000 (23:17 +0200)
committerAntonio Quartulli <a@unstable.cc>
Wed, 18 May 2016 03:49:38 +0000 (11:49 +0800)
commit63d443efe8be2c1d02b30d7e4edeb9aa085352b3
tree2d50b3ba410917d098c4ff4fb87aa78f09626448
parent917fa5353da05e8a0045b8acacba8d50400d5b12
batman-adv: fix skb deref after free

batadv_send_skb_to_orig() calls dev_queue_xmit() so we can't use skb->len.

Fixes: 953324776d6d ("batman-adv: network coding - buffer unicast packets before forward")
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/routing.c