]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: fix neigh reference imbalance
authorSimon Wunderlich <simon@open-mesh.com>
Wed, 26 Mar 2014 14:46:22 +0000 (15:46 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 10 May 2014 08:58:45 +0000 (10:58 +0200)
commitd8fb792fac1d8000b2efebb45e2a9a8fdbf46f92
tree5193950037c3ef3433a271b579dd3c5583bae19b
parent436dfa21478e1751448e9b87065105bd80cc2c62
batman-adv: fix neigh reference imbalance

When an interface is removed from batman-adv, the orig_ifinfo of a
orig_node may be removed without releasing the router first.
This will prevent the reference for the neighbor pointed at by the
orig_ifinfo->router to be released, and this leak may result in
reference leaks for the interface used by this neighbor. Fix that.

This is a regression introduced by
b650eeb94253ca8d7f123b613ebcd5b29de32a6a
("batman-adv: split out router from orig_node").

Reported-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/originator.c