From: Johannes Berg Date: Wed, 1 Aug 2012 19:03:21 +0000 (+0200) Subject: mac80211: cancel mesh path timer X-Git-Tag: v3.5.2~43 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a43de96a1a79bc4eb797a57834fa6e5fc439ecfe;p=karo-tx-linux.git mac80211: cancel mesh path timer commit dd4c9260e7f23f2e951cbfb2726e468c6d30306c upstream. The mesh path timer needs to be canceled when leaving the mesh as otherwise it could fire after the interface has been removed already. Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 2913113c5833..e9494bce7273 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -621,6 +621,7 @@ void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata) del_timer_sync(&sdata->u.mesh.housekeeping_timer); del_timer_sync(&sdata->u.mesh.mesh_path_root_timer); + del_timer_sync(&sdata->u.mesh.mesh_path_timer); /* * If the timer fired while we waited for it, it will have * requeued the work. Now the work will be running again