aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rt2860
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-12-26 20:00:47 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-03 16:42:34 -0800
commit23a51a8061567a47347ade59edf2a0bde0eece30 (patch)
tree6813d9654bcfd013b9c7dee45756c0389b0b4b8f /drivers/staging/rt2860
parentStaging: rtl8192u: ieee80211: add missing parentheses (diff)
downloadlinux-dev-23a51a8061567a47347ade59edf2a0bde0eece30.tar.xz
linux-dev-23a51a8061567a47347ade59edf2a0bde0eece30.zip
Staging: rt2860: test off by one in RtmpAsicSendCommandToMcu()
`i' reaches 101 after the loop, so if it was 100 then it succeeded in the last iteration. This is probably unlikely to cause problems. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rt2860')
-rw-r--r--drivers/staging/rt2860/common/rtmp_mcu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rt2860/common/rtmp_mcu.c b/drivers/staging/rt2860/common/rtmp_mcu.c
index 9f03901433bb..e80f587cff1a 100644
--- a/drivers/staging/rt2860/common/rtmp_mcu.c
+++ b/drivers/staging/rt2860/common/rtmp_mcu.c
@@ -221,7 +221,7 @@ int RtmpAsicSendCommandToMcu(struct rt_rtmp_adapter *pAd,
("AsicSendCommanToMcu::Mail box is busy\n"));
} while (i++ < 100);
- if (i >= 100) {
+ if (i > 100) {
DBGPRINT_ERR(("H2M_MAILBOX still hold by MCU. command fail\n"));
return FALSE;
}