diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-03-31 04:58:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 09:40:49 -0400 |
commit | c4151700bbf661d0f73c1beffb35b2039f5306fd (patch) | |
tree | 81e58061ec81c96a4dbef03e4ca5d727782a6702 | |
parent | 8852112e1c23a27e41f1b6b401c254c2de0f82b5 (diff) |
Staging: rtl8192u: use correct array for debug output
This is supposed to be ->rates_ex[] instead of ->rates[]. I found this
because static checkers complain than ->rates is too small so we're
reading beyond the end of the array. It has 12 elements instead of 15.
This bug was apparently copy and pasted from ipw2x00. I fixed it before
in that driver 428e3cf5f98c ('ipw2x00: printing the wrong array in
debug code')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c index b4d09b21f8ec..9fbb53d8c6bf 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | |||
@@ -1704,7 +1704,7 @@ int ieee80211_parse_info_param(struct ieee80211_device *ieee, | |||
1704 | #ifdef CONFIG_IEEE80211_DEBUG | 1704 | #ifdef CONFIG_IEEE80211_DEBUG |
1705 | p += snprintf(p, sizeof(rates_str) - | 1705 | p += snprintf(p, sizeof(rates_str) - |
1706 | (p - rates_str), "%02X ", | 1706 | (p - rates_str), "%02X ", |
1707 | network->rates[i]); | 1707 | network->rates_ex[i]); |
1708 | #endif | 1708 | #endif |
1709 | if (ieee80211_is_ofdm_rate | 1709 | if (ieee80211_is_ofdm_rate |
1710 | (info_element->data[i])) { | 1710 | (info_element->data[i])) { |