diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-06-21 12:26:20 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-24 18:44:25 (GMT) |
commit | 428e3cf5f98cf9528586854b1c4f9f9f76f54b4e (patch) | |
tree | f6c8da999bc00ea5fa9c7f8f7fd118ba4a94ae6e /drivers | |
parent | fca3c21d5659f21edbf30a80b706cbc00f368659 (diff) | |
download | linux-428e3cf5f98cf9528586854b1c4f9f9f76f54b4e.tar.xz |
ipw2x00: printing the wrong array in debug code
Smatch complains that this is a read past the end of the array. It
turns out we are printing the wrong array here.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ipw2x00/libipw_rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ipw2x00/libipw_rx.c b/drivers/net/wireless/ipw2x00/libipw_rx.c index 95a1ca1..9ffe659 100644 --- a/drivers/net/wireless/ipw2x00/libipw_rx.c +++ b/drivers/net/wireless/ipw2x00/libipw_rx.c @@ -1195,7 +1195,7 @@ static int libipw_parse_info_param(struct libipw_info_element #ifdef CONFIG_LIBIPW_DEBUG p += snprintf(p, sizeof(rates_str) - (p - rates_str), "%02X ", - network->rates[i]); + network->rates_ex[i]); #endif if (libipw_is_ofdm_rate (info_element->data[i])) { |