linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 06/10] mac80211: delete mesh_path timer on mesh_path removal
@ 2008-02-29 22:49 Luis Carlos Cobo
  0 siblings, 0 replies; only message in thread
From: Luis Carlos Cobo @ 2008-02-29 22:49 UTC (permalink / raw)
  To: linux-wireless; +Cc: Johannes Berg, John Linville

This avoids dereferencing a no longer existing struct mesh_path.

Signed-off-by: Luis Carlos Cobo <luisca@cozybit.com>
---
 net/mac80211/mesh_pathtbl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c
index ab4d757..bd58849 100644
--- a/net/mac80211/mesh_pathtbl.c
+++ b/net/mac80211/mesh_pathtbl.c
@@ -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);
-- 
1.5.2.5




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-03 20:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-29 22:49 [PATCH 06/10] mac80211: delete mesh_path timer on mesh_path removal Luis Carlos Cobo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).