]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mac80211: cancel mesh path timer
authorJohannes Berg <johannes.berg@intel.com>
Wed, 1 Aug 2012 19:03:21 +0000 (21:03 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 19 Aug 2012 17:15:28 +0000 (18:15 +0100)
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 <johannes.berg@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/mac80211/mesh.c

index a7078fdba8ca7e3cf2a1f047f1f39c57c643f63e..f85de8ed58591bd330e2915553ae716f210fba08 100644 (file)
@@ -543,6 +543,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