diff options
author | Sven Eckelmann <[email protected]> | 2016-08-06 15:50:52 +0200 |
---|---|---|
committer | Simon Wunderlich <[email protected]> | 2016-08-26 15:22:30 +0200 |
commit | 936523441bb64cdc9a5b263e8fd2782e70313a57 (patch) | |
tree | dcc21b6097509844be06b692a15f6c3f0128497f /lib/mpi/mpi-cmp.c | |
parent | 1fe323aa1b2390a0c57fb0b06a782f128d49094c (diff) |
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 <[email protected]>
Signed-off-by: Marek Lindner <[email protected]>
Signed-off-by: Simon Wunderlich <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions