summaryrefslogtreecommitdiff
path: root/net/sysctl_net.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2016-06-30 20:11:34 +0200
committerSimon Wunderlich <sw@simonwunderlich.de>2016-07-05 12:43:52 +0200
commit15c2ed753cd9e3e746472deab8151337a5b6da56 (patch)
treeb078f6d4b1f139c456e2643461dc24699a5b92b3 /net/sysctl_net.c
parent3db0decf1185357d6ab2256d0dede1ca9efda03d (diff)
batman-adv: Fix reference leak in batadv_find_router
The replacement of last_bonding_candidate in batadv_orig_node has to be an atomic operation. Otherwise it is possible that the reference counter of a batadv_orig_ifinfo is reduced which was no longer the last_bonding_candidate when the new candidate is added. This can either lead to an invalid memory access or to reference leaks which make it impossible to an interface which was added to batman-adv. 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 'net/sysctl_net.c')
0 files changed, 0 insertions, 0 deletions