Skip to contentSkip to conversation

mac80211: delete mesh_path timer on mesh_path removal

PATCH In review Luis Carlos Cobo 1 participant 1 message Mar 3, 2008 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 6/10 mac80211: delete mesh_path timer on mesh_path removal

This avoids dereferencing a no longer existing struct mesh_path.

---
 net/mac80211/mesh_pathtbl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/mac80211/mesh_pathtbl.c +1 -0
index ab4d757..bd58849 100644
@@ -301,6 +301,7 @@ static void mesh_path_node_reclaim(struct rcu_head *rp)
 	struct ieee80211_sub_if_data *sdata =
 		IEEE80211_DEV_TO_SUB_IF(node->mpath->dev);
 
+	del_timer_sync(&node->mpath->timer);
 	atomic_dec(&sdata->u.sta.mpaths);
 	kfree(node->mpath);
 	kfree(node);
Signature · 1 line
1.5.2.5