diff options
author | Simon Wunderlich <simon@open-mesh.com> | 2014-03-26 15:46:22 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-31 13:20:37 -0700 |
commit | ea859052dd85388cbfd20bf252d4db92123344b9 (patch) | |
tree | 2280646f6906bb289472dc7025bb946f333d3207 /net/batman-adv/sysfs.h | |
parent | 1adf643050df1289c36dd158baa5d4cc2fa593ae (diff) |
batman-adv: fix neigh reference imbalance
[ Upstream commit 000c8dff97311357535d64539e58990526e4de70 ]
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
7351a4822d42827ba0110677c0cbad88a3d52585
("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/batman-adv/sysfs.h')
0 files changed, 0 insertions, 0 deletions