Skip to content

Commit

Permalink
ipw2x00: printing the wrong array in debug code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Jun 24, 2013
1 parent fca3c21 commit 428e3cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ipw2x00/libipw_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down

0 comments on commit 428e3cf

Please sign in to comment.