diff options
author | Javier Cardona <javier@cozybit.com> | 2011-05-13 17:16:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-16 14:25:28 -0400 |
commit | d0df9eecf9f61f70fd847656f5eb113e06e46a03 (patch) | |
tree | 8604356c13dec2d3c42b7b6367a64d42fd7a7bfd /net/mac80211 | |
parent | 011159a0a746e03ae42d559ce5c2a70138da3129 (diff) |
mac80211: Deactivate mesh path timers when freeing nodes
Mesh paths are deleted via mesh_path_del() which properly
deactivates the timer associated to a mesh path. But if paths were
deleted by mesh_table_free(..., true) timers would not be deactivated.
This fixes this case.
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/mesh_pathtbl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c index 0aa96cd6bd27..f775202552e5 100644 --- a/net/mac80211/mesh_pathtbl.c +++ b/net/mac80211/mesh_pathtbl.c | |||
@@ -719,8 +719,10 @@ static void mesh_path_node_free(struct hlist_node *p, bool free_leafs) | |||
719 | struct mpath_node *node = hlist_entry(p, struct mpath_node, list); | 719 | struct mpath_node *node = hlist_entry(p, struct mpath_node, list); |
720 | mpath = node->mpath; | 720 | mpath = node->mpath; |
721 | hlist_del_rcu(p); | 721 | hlist_del_rcu(p); |
722 | if (free_leafs) | 722 | if (free_leafs) { |
723 | del_timer_sync(&mpath->timer); | ||
723 | kfree(mpath); | 724 | kfree(mpath); |
725 | } | ||
724 | kfree(node); | 726 | kfree(node); |
725 | } | 727 | } |
726 | 728 | ||