Skip to content

Commit

Permalink
mwl8k: Disable tx_wait completion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nishant Sarmukadam authored and John W. Linville committed Jan 9, 2013
1 parent 96da6fd commit 9b0b11f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/mwl8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9b0b11f

Please sign in to comment.