batman-adv: update data pointers after skb_cow()
authorMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 17 Mar 2020 20:15:38 +0000 (21:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Mar 2020 08:07:56 +0000 (09:07 +0100)
commit3c6ed319b82ff75f96c262477eae7f5d4fc65823
tree5b46fb760cda3b37e7cb6ce6a705ee30c591b011
parentbaed34edb061ba596b5bb6cd307aba9411d04b83
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: 78fc6bbe0aca ("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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/batman-adv/routing.c