batman-adv: update data pointers after skb_cow()
authorMatthias Schiffer <mschiffer@universe-factory.net>
Fri, 16 Mar 2018 10:29:09 +0000 (11:29 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Fri, 16 Mar 2018 19:23:38 +0000 (20:23 +0100)
commitbc44b78157f621ff2a2618fe287a827bcb094ac4
treed723d07907cfe6a42ebcf512f651e9a49def32ca
parent74c12c630fe310eb7fcae1b292257d47781fff0a
batman-adv: update data pointers after skb_cow()

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>
net/batman-adv/routing.c