Linux wireless drivers development
 help / color / mirror / Atom feed
* [RFC 1/2] mac80211:  Stop timer before deleting data structures.
@ 2013-06-18  0:28 greearb
  2013-06-18  0:28 ` [RFC 2/2] wireless: Make sure __cfg80211_connect_result always puts bss greearb
  2013-06-18 12:14 ` [RFC 1/2] mac80211: Stop timer before deleting data structures Johannes Berg
  0 siblings, 2 replies; 4+ messages in thread
From: greearb @ 2013-06-18  0:28 UTC (permalink / raw)
  To: linux-wireless; +Cc: Ben Greear

From: Ben Greear <greearb@candelatech.com>

Not sure this matters, but it seems cleaner.

Signed-off-by: Ben Greear <greearb@candelatech.com>
---
 net/mac80211/mlme.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 732eda0..ebfa416 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -4379,11 +4379,11 @@ void ieee80211_mgd_stop(struct ieee80211_sub_if_data *sdata)
 	cancel_work_sync(&ifmgd->chswitch_work);
 
 	mutex_lock(&ifmgd->mtx);
+	del_timer_sync(&ifmgd->timer);
 	if (ifmgd->assoc_data)
 		ieee80211_destroy_assoc_data(sdata, false, true);
 	if (ifmgd->auth_data)
 		ieee80211_destroy_auth_data(sdata, false);
-	del_timer_sync(&ifmgd->timer);
 	mutex_unlock(&ifmgd->mtx);
 }
 
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-06-18 12:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-18  0:28 [RFC 1/2] mac80211: Stop timer before deleting data structures greearb
2013-06-18  0:28 ` [RFC 2/2] wireless: Make sure __cfg80211_connect_result always puts bss greearb
2013-06-18 12:19   ` Johannes Berg
2013-06-18 12:14 ` [RFC 1/2] mac80211: Stop timer before deleting data structures Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox