]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
batman-adv: fix header size check in batadv_dbg_arp()
authorMatthias Schiffer <mschiffer@universe-factory.net>
Fri, 16 Mar 2018 10:29:10 +0000 (11:29 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Fri, 16 Mar 2018 19:23:48 +0000 (20:23 +0100)
commit6f27d2c2a8c236d296201c19abb8533ec20d212b
treeeed24deb0ef1ca001b21a84a02c39a1727c59bcd
parentbc44b78157f621ff2a2618fe287a827bcb094ac4
batman-adv: fix header size check in batadv_dbg_arp()

Checking for 0 is insufficient: when an SKB without a batadv header, but
with a VLAN header is received, hdr_size will be 4, making the following
code interpret the Ethernet header as a batadv header.

Fixes: be1db4f6615b ("batman-adv: make the Distributed ARP Table vlan aware")
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/distributed-arp-table.c