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:
2470b36
)
iwlwifi: fix length check in multi-TB HCMD
author
Emmanuel Grumbach
<
[email protected]
>
Thu, 14 Mar 2013 06:35:06 +0000
(08:35 +0200)
committer
Johannes Berg
<
[email protected]
>
Wed, 20 Mar 2013 11:07:07 +0000
(12:07 +0100)
As reported by Ben Hutchings, there was a harmless issue in
the checks being done on the lengths of the TBs while
building the TFD for a multi-TB host command.
Cc: stable@
[email protected]
Signed-off-by: Emmanuel Grumbach <
[email protected]
>
Signed-off-by: Johannes Berg <
[email protected]
>
drivers/net/wireless/iwlwifi/pcie/tx.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlwifi/pcie/tx.c
b/drivers/net/wireless/iwlwifi/pcie/tx.c
index 8595c16f74deb8bdcf531725e3c65c0986d58745..cb5c6792e3a8de2679022370c140263b8e1e9e57 100644
(file)
--- a/
drivers/net/wireless/iwlwifi/pcie/tx.c
+++ b/
drivers/net/wireless/iwlwifi/pcie/tx.c
@@
-1264,7
+1264,7
@@
static int iwl_pcie_enqueue_hcmd(struct iwl_trans *trans,
for (i = 0; i < IWL_MAX_CMD_TBS_PER_TFD; i++) {
int copy = 0;
- if (!cmd->len)
+ if (!cmd->len
[i]
)
continue;
/* need at least IWL_HCMD_SCRATCHBUF_SIZE copied */