diff options
author | Sven Eckelmann <sven@narfation.org> | 2016-08-06 16:50:52 +0300 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2016-08-26 16:22:30 +0300 |
commit | 936523441bb64cdc9a5b263e8fd2782e70313a57 (patch) | |
tree | dcc21b6097509844be06b692a15f6c3f0128497f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 1fe323aa1b2390a0c57fb0b06a782f128d49094c (diff) | |
download | linux-936523441bb64cdc9a5b263e8fd2782e70313a57.tar.xz |
batman-adv: Add missing refcnt for last_candidate
batadv_find_router dereferences last_bonding_candidate from
orig_node without making sure that it has a valid reference. This reference
has to be retrieved by increasing the reference counter while holding
neigh_list_lock. The lock is required to avoid that
batadv_last_bonding_replace removes the current last_bonding_candidate,
reduces the reference counter and maybe destroys the object in this
process.
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>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions