batman-adv: Free last_bonding_candidate on release of orig_node
authorSven Eckelmann <sven@narfation.org>
Thu, 30 Jun 2016 19:41:13 +0000 (21:41 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 5 Jul 2016 10:43:58 +0000 (12:43 +0200)
commitcbef1e102003edb236c6b2319ab269ccef963731
tree3798c81d921c6ece854adb72e3a895aa70035cb8
parent15c2ed753cd9e3e746472deab8151337a5b6da56
batman-adv: Free last_bonding_candidate on release of orig_node

The orig_ifinfo reference counter for last_bonding_candidate in
batadv_orig_node has to be reduced when an originator node is released.
Otherwise the orig_ifinfo is leaked and the reference counter the netdevice
is not reduced correctly.

Fixes: f3b3d9018975 ("batman-adv: add bonding again")
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