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>
This commit is contained in:
Dan Carpenter 2013-06-21 15:26:20 +03:00 коммит произвёл John W. Linville
Родитель fca3c21d56
Коммит 428e3cf5f9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1195,7 +1195,7 @@ static int libipw_parse_info_param(struct libipw_info_element
#ifdef CONFIG_LIBIPW_DEBUG #ifdef CONFIG_LIBIPW_DEBUG
p += snprintf(p, sizeof(rates_str) - p += snprintf(p, sizeof(rates_str) -
(p - rates_str), "%02X ", (p - rates_str), "%02X ",
network->rates[i]); network->rates_ex[i]);
#endif #endif
if (libipw_is_ofdm_rate if (libipw_is_ofdm_rate
(info_element->data[i])) { (info_element->data[i])) {