diff options
author | Marek Lindner <mareklindner@neomailbox.ch> | 2015-06-21 18:30:23 +0200 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2015-08-25 00:12:21 +0200 |
commit | a121048a89f8186fa2c8388d5b41528466013857 (patch) | |
tree | f26005872c6fb6ab97f6f482de9e2b8e749aca7f /net/batman-adv/originator.c | |
parent | batman-adv: convert orig_node->vlan_list to hlist (diff) | |
download | linux-a121048a89f8186fa2c8388d5b41528466013857.tar.xz linux-a121048a89f8186fa2c8388d5b41528466013857.zip |
batman-adv: prevent potential hlist double deletion
The hlist_del_rcu() call in batadv_tt_global_size_mod() does not check
if the element still is part of the list prior to deletion. The atomic
list counter should prevent the worst but converting to
hlist_del_init_rcu() ensures the element can't be deleted more than
once.
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net/batman-adv/originator.c')
0 files changed, 0 insertions, 0 deletions