]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: rtl8192u: use correct array for debug output
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 31 Mar 2015 08:58:55 +0000 (11:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 13:40:49 +0000 (15:40 +0200)
commit189540987752987f82bbde5917f8fea31fe6aef3
tree81e58061ec81c96a4dbef03e4ca5d727782a6702
parent701bc119d0f15229290294cf022ebae4b7d979ed
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 19dc5b6a1613 ('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>
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c