diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-02-19 15:47:32 -0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-22 11:15:50 -0500 |
commit | a239a8b47cc0e5e6d7416a89f340beac06d5edaa (patch) | |
tree | 1001bd0ec9f66cdc6a056f9373297bff327933eb /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | 5e2f75b8993a0d83d469388b50716dd5551f2eb4 (diff) | |
download | talos-op-linux-a239a8b47cc0e5e6d7416a89f340beac06d5edaa.tar.gz talos-op-linux-a239a8b47cc0e5e6d7416a89f340beac06d5edaa.zip |
iwlwifi: error checking for number of tfds in queue
When receive reply_tx and ready to decrement the count for number of
tfds in queue, do error checking to prevent error condition and
tfds_in_queue become negative number.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
CC: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 9b4b8b5c7574..31462813bac0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c @@ -2008,7 +2008,7 @@ static void iwl4965_rx_reply_tx(struct iwl_priv *priv, IWL_DEBUG_TX_REPLY(priv, "Retry scheduler reclaim scd_ssn " "%d index %d\n", scd_ssn , index); freed = iwl_tx_queue_reclaim(priv, txq_id, index); - priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; + iwl_free_tfds_in_queue(priv, sta_id, tid, freed); if (priv->mac80211_registered && (iwl_queue_space(&txq->q) > txq->q.low_mark) && |