aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl3945-base.c
diff options
context:
space:
mode:
authorAbhijeet Kolekar <abhijeet.kolekar@intel.com>2008-09-02 23:26:27 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-09-08 14:23:15 -0400
commit322a9811a3ac1db7ddd11c959e8d9e438e97e8e6 (patch)
treea46ecf70fd7edb4107c6cf82e159132d48d4baa9 /drivers/net/wireless/iwlwifi/iwl3945-base.c
parent17e72782f02fe732d687e5bc2bb0ce10424d2819 (diff)
iwl3945: fix unbalanced mutex
The patch removes unlocking of mutex from post_associate. Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 7e3e5bfed681..ed5e625fe4e5 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -6339,10 +6339,9 @@ static void iwl3945_post_associate(struct iwl3945_priv *priv)
6339 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) 6339 if (test_bit(STATUS_EXIT_PENDING, &priv->status))
6340 return; 6340 return;
6341 6341
6342 if (!priv->vif || !priv->is_open) { 6342 if (!priv->vif || !priv->is_open)
6343 mutex_unlock(&priv->mutex);
6344 return; 6343 return;
6345 } 6344
6346 iwl3945_scan_cancel_timeout(priv, 200); 6345 iwl3945_scan_cancel_timeout(priv, 200);
6347 6346
6348 conf = ieee80211_get_hw_conf(priv->hw); 6347 conf = ieee80211_get_hw_conf(priv->hw);