From: Abhijeet Kolekar Date: Wed, 3 Sep 2008 03:26:27 +0000 (+0800) Subject: iwl3945: fix unbalanced mutex X-Git-Tag: v2.6.28-rc1~717^2~310^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=322a9811a3ac1db7ddd11c959e8d9e438e97e8e6;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git iwl3945: fix unbalanced mutex The patch removes unlocking of mutex from post_associate. Signed-off-by: Abhijeet Kolekar Signed-off-by: Zhu Yi Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 7e3e5bf..ed5e625 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) if (test_bit(STATUS_EXIT_PENDING, &priv->status)) return; - if (!priv->vif || !priv->is_open) { - mutex_unlock(&priv->mutex); + if (!priv->vif || !priv->is_open) return; - } + iwl3945_scan_cancel_timeout(priv, 200); conf = ieee80211_get_hw_conf(priv->hw);