diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/wmi.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/wmi.c | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/drivers/net/wireless/ath/ath9k/wmi.c b/drivers/net/wireless/ath/ath9k/wmi.c index fe29ad4b9023..f315c54bd3ac 100644 --- a/drivers/net/wireless/ath/ath9k/wmi.c +++ b/drivers/net/wireless/ath/ath9k/wmi.c @@ -169,6 +169,10 @@ void ath9k_wmi_event_tasklet(struct tasklet_struct *t)  					     &wmi->drv_priv->fatal_work);  			break;  		case WMI_TXSTATUS_EVENTID: +			/* Check if ath9k_tx_init() completed. */ +			if (!data_race(priv->tx.initialized)) +				break; +  			spin_lock_bh(&priv->tx.tx_lock);  			if (priv->tx.flags & ATH9K_HTC_OP_TX_DRAIN) {  				spin_unlock_bh(&priv->tx.tx_lock); |