]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Fix refcnt leak in batadv_v_neigh_*
authorSven Eckelmann <sven@narfation.org>
Fri, 6 May 2016 09:43:39 +0000 (11:43 +0200)
committerAntonio Quartulli <a@unstable.cc>
Wed, 18 May 2016 03:49:40 +0000 (11:49 +0800)
commit96b4987d00c9d593808671badaaa79bfd0e2c3fa
tree5feaba3744a53cfb781720c9438cb9f03faaa6f3
parentb4deb8bc8a06a6e6d7894afab61381324ef35e22
batman-adv: Fix refcnt leak in batadv_v_neigh_*

The functions batadv_neigh_ifinfo_get increase the reference counter of the
batadv_neigh_ifinfo. These have to be reduced again when the reference is
not used anymore to correctly free the objects.

Fixes: 393cef320de7 ("batman-adv: B.A.T.M.A.N. V - implement neighbor comparison API calls")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/bat_v.c