]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitae9661e7b4500391fef57c8c851227b674933bc6
tree3798c81d921c6ece854adb72e3a895aa70035cb8
parent507a719d7f0235b2aec20344c1b762d87610c3ff
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: 6656bc99841d ("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