iwlwifi: error checking for number of tfds in queue
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 19 Feb 2010 23:47:32 +0000 (15:47 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Feb 2010 16:15:50 +0000 (11:15 -0500)
commita239a8b47cc0e5e6d7416a89f340beac06d5edaa
tree1001bd0ec9f66cdc6a056f9373297bff327933eb
parent5e2f75b8993a0d83d469388b50716dd5551f2eb4
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>
drivers/net/wireless/iwlwifi/iwl-4965.c
drivers/net/wireless/iwlwifi/iwl-5000.c
drivers/net/wireless/iwlwifi/iwl-core.h
drivers/net/wireless/iwlwifi/iwl-tx.c