summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorNishant Sarmukadam <nishants@marvell.com>2013-01-08 04:46:05 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2013-01-09 19:37:10 (GMT)
commit9b0b11fb1e286e03ce911b94844952edd05f554e (patch)
tree7831c59482ea25887bc75143e0780a44acff91e2 /drivers/net
parent96da6fdd5ae28568be63ccf1f70b14a72135d493 (diff)
downloadlinux-9b0b11fb1e286e03ce911b94844952edd05f554e.tar.xz
mwl8k: Disable tx_wait completion
Whenever TX ring is drained, priv->tx_wait still points to a valid completion. Making sure that it points to NULL before returning from the mwl8k_tx_wait_empty check. Signed-off-by: Nishant Sarmukadam <nishants@marvell.com> Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/mwl8k.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index c4d287b..04442c6 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -1588,6 +1588,7 @@ static int mwl8k_tx_wait_empty(struct ieee80211_hw *hw)
rc = -ETIMEDOUT;
}
+ priv->tx_wait = NULL;
spin_unlock_bh(&priv->tx_lock);
return rc;