diff options
-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 | ||