summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_ingress.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2016-01-31 13:27:59 +0100
committerAntonio Quartulli <a@unstable.cc>2016-02-16 10:52:25 +0100
commitc18bdd018e8912ca73ad6c12120b7283b5038875 (patch)
tree6ae1d405b2ed725cc1dff31138576a024712f612 /net/sched/sch_ingress.c
parentdscc4: Undefined signed int shift (diff)
downloadlinux-c18bdd018e8912ca73ad6c12120b7283b5038875.tar.xz
linux-c18bdd018e8912ca73ad6c12120b7283b5038875.zip
batman-adv: Only put gw_node list reference when removed
The batadv_gw_node reference counter in batadv_gw_node_update can only be reduced when the list entry was actually removed. Otherwise the reference counter may reach zero when batadv_gw_node_update is called from two different contexts for the same gw_node but only one context is actually removing the entry from the list. The release function for this gw_node is not called inside the list_lock spinlock protected region because the function batadv_gw_node_update still holds a gw_node reference for the object pointer on the stack. Thus the actual release function (when required) will be called only at the end of the function. Fixes: bd3524c14bd0 ("batman-adv: remove obsolete deleted attribute for gateway node") Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Antonio Quartulli <a@unstable.cc>
Diffstat (limited to 'net/sched/sch_ingress.c')
0 files changed, 0 insertions, 0 deletions