]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: sanity check before counting number of tfds can be free
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 19 Feb 2010 23:47:33 +0000 (15:47 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Feb 2010 16:15:50 +0000 (11:15 -0500)
commitc6f0a40d7cd986f870eb0fda707c5b507a2e27c4
treed07795748f9ccbd53958f24671fab60eb8c1bf48
parente41c355be1dd86b540823ed1adc1c596d1e8f7fb
iwlwifi: sanity check before counting number of tfds can be free

Check the frame control for ieee80211_is_data_qos() is true before
counting the number of tfds can be free, the tfds_in_queue only
increment when ieee80211_is_data_qos() is true before transmit; so it
should only decrement if the type match.

Remove ieee80211_is_data_qos check for frame_ctrl in tx_resp to avoid
invalid information pass from uCode.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
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>
drivers/net/wireless/iwlwifi/iwl-5000.c
drivers/net/wireless/iwlwifi/iwl-tx.c