]> git.baikalelectronics.ru Git - kernel.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)
commit830c18529e39a26901bd08112e81e10e4c982072
treebb8a232b7c1d1dd6415b971d5e30351858adb44d
parent74ba8ae1ba9d5d1a9ce35b4d7a2b982f83c4cd3a
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