projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3373b28
)
iwlagn: Fix a bug introduced by the HUGE command removal
author
Emmanuel Grumbach
<
[email protected]
>
Tue, 21 Jun 2011 18:03:01 +0000
(11:03 -0700)
committer
Wey-Yi Guy
<
[email protected]
>
Fri, 24 Jun 2011 18:20:38 +0000
(11:20 -0700)
Since we don't have HUGE command any more, there is no point in adding 1
to the num of slots in the command queue. Doing so is buggy and might corrupt
memory.
Bug introduced by
4ce7cc2b09553a91d4aea014c39674685715173a
iwlagn: support multiple TBs per command
Cc: Johannes Berg <
[email protected]
>
Signed-off-by: Emmanuel Grumbach <
[email protected]
>
Signed-off-by: Wey-Yi Guy <
[email protected]
>
drivers/net/wireless/iwlwifi/iwl-tx.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/iwl-tx.c
b/drivers/net/wireless/iwlwifi/iwl-tx.c
index 686e176b5ebdeb80c992860b49e2e64150892ca0..157a642a54367ce64e6ad48463627eb7f54cc5a9 100644
(file)
--- a/
drivers/net/wireless/iwlwifi/iwl-tx.c
+++ b/
drivers/net/wireless/iwlwifi/iwl-tx.c
@@
-535,12
+535,7
@@
out_free_arrays:
void iwl_tx_queue_reset(struct iwl_priv *priv, struct iwl_tx_queue *txq,
int slots_num, u32 txq_id)
{
- int actual_slots = slots_num;
-
- if (txq_id == priv->cmd_queue)
- actual_slots++;
-
- memset(txq->meta, 0, sizeof(struct iwl_cmd_meta) * actual_slots);
+ memset(txq->meta, 0, sizeof(struct iwl_cmd_meta) * slots_num);
txq->need_update = 0;