mac80211: cancel mesh path timer
authorJohannes Berg <johannes.berg@intel.com>
Wed, 1 Aug 2012 19:03:21 +0000 (21:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 1 Aug 2012 19:03:21 +0000 (21:03 +0200)
The mesh path timer needs to be canceled when
leaving the mesh as otherwise it could fire
after the interface has been removed already.

Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh.c

index d60b3d362e008ea196bc29d57bc4d9a89e67240c..85572353a7e37d59b64ced140d75f7a9b8d3fb81 100644 (file)
@@ -622,6 +622,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