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:
bb35071
)
ath9k: Fix error reported by smatch
author
Sujith Manoharan
<
[email protected]
>
Tue, 14 Jan 2014 03:52:36 +0000
(09:22 +0530)
committer
John W. Linville
<
[email protected]
>
Thu, 16 Jan 2014 19:55:41 +0000
(14:55 -0500)
debug_sta.c: ath_debug_rate_stats() error: buffer overflow 'rstats->ht_stats' 24 <= 24
Cc: Dan Carpenter <
[email protected]
>
Signed-off-by: Sujith Manoharan <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath9k/debug_sta.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/debug_sta.c
b/drivers/net/wireless/ath/ath9k/debug_sta.c
index d33cc88a5849d93767ea7fbf3c9b65f95e81a139..d76e6e0120d2c28236163f56de4471c46f397c60 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/debug_sta.c
+++ b/
drivers/net/wireless/ath/ath9k/debug_sta.c
@@
-128,7
+128,7
@@
void ath_debug_rate_stats(struct ath_softc *sc,
rxs = IEEE80211_SKB_RXCB(skb);
if (IS_HT_RATE(rs->rs_rate)) {
- if (rxs->rate_idx > ARRAY_SIZE(rstats->ht_stats))
+ if (rxs->rate_idx >
=
ARRAY_SIZE(rstats->ht_stats))
goto exit;
if (rxs->flag & RX_FLAG_40MHZ)