]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Staging: rtl8192u: fix a reversed test
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 6 Jun 2013 07:30:49 +0000 (10:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2013 18:57:15 +0000 (11:57 -0700)
commitc2ac90b9b4c178936396deb67451e3850c0e5204
treebb8a232b7c1d1dd6415b971d5e30351858adb44d
parent0ea8a165ab300699ffa3b68721e4837173508eb3
Staging: rtl8192u: fix a reversed test

Sean MacLennan fixed this in the rtl8192e driver and we should fix
it here as well.

It's pretty harmless.  This information comes from the firmware, if
we were to hit this bug we would read beyond the end of the array
once or twice before returning and update our statistics with bogus
data.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r819xU_cmdpkt.c