]> git.ipfire.org Git - people/arne_f/kernel.git/commit
batman-adv: update data pointers after skb_cow()
authorMatthias Schiffer <mschiffer@universe-factory.net>
Mon, 16 Mar 2020 22:30:23 +0000 (23:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Mar 2020 09:54:21 +0000 (10:54 +0100)
commit416cada5adabd95ddd63776e367eb6dd134dff89
tree9188f59cf0151bb724d7745155c8b8fc2b2205e8
parent78855971878cc5f6542bef42d4ef2eb403498fcd
batman-adv: update data pointers after skb_cow()

commit bc44b78157f621ff2a2618fe287a827bcb094ac4 upstream.

batadv_check_unicast_ttvn() calls skb_cow(), so pointers into the SKB data
must be (re)set after calling it. The ethhdr variable is dropped
altogether.

Fixes: 7cdcf6dddc42 ("batman-adv: add UNICAST_4ADDR packet type")
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/batman-adv/routing.c