batman-adv: Fix orig_node_vlan leak on orig_node_release
authorSven Eckelmann <sven@narfation.org>
Thu, 30 Jun 2016 18:10:46 +0000 (20:10 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 5 Jul 2016 10:43:10 +0000 (12:43 +0200)
commit33fbb1f3db87ce53da925b3e034b4dd446d483f8
tree36deda9a7b286a773b9cca3314d533a36a9dbe9f
parent60154a1e0495ffb8343a95cefe1e874634572fa8
batman-adv: Fix orig_node_vlan leak on orig_node_release

batadv_orig_node_new uses batadv_orig_node_vlan_new to allocate a new
batadv_orig_node_vlan and add it to batadv_orig_node::vlan_list. References
to this list have also to be cleaned when the batadv_orig_node is removed.

Fixes: 7ea7b4a14275 ("batman-adv: make the TT CRC logic VLAN specific")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/originator.c