batman-adv: Fix invalid stack access in batadv_dat_select_candidates
authorSven Eckelmann <sven@open-mesh.com>
Tue, 3 Nov 2015 09:05:44 +0000 (10:05 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Mon, 7 Dec 2015 14:40:21 +0000 (22:40 +0800)
commitb7fe3d4f4a65bc675e737d88071300ea9c4bcddd
tree67687b3c5d6b9822776988d43f6ddd4945f6364b
parent4c71895830dd66fb9d3331ab27481a777d2a9202
batman-adv: Fix invalid stack access in batadv_dat_select_candidates

batadv_dat_select_candidates provides an u32 to batadv_hash_dat but it
needs a batadv_dat_entry with at least ip and vid filled in.

Fixes: 3e26722bc9f2 ("batman-adv: make the Distributed ARP Table vlan aware")
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
Acked-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/distributed-arp-table.c