diff options
author | glebius <glebius@FreeBSD.org> | 2016-02-17 21:24:26 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2016-02-17 21:24:26 +0000 |
commit | 8e9d8933b8d03e123ba7d431edc4efb632732182 (patch) | |
tree | 1389abc4d8cfc454e3a54a2d052addde39736ed8 /sys/dev | |
parent | c905b9e75ce7c386db0df386df6927e2afd8508f (diff) | |
download | FreeBSD-src-8e9d8933b8d03e123ba7d431edc4efb632732182.zip FreeBSD-src-8e9d8933b8d03e123ba7d431edc4efb632732182.tar.gz |
Fix a potentially "forever" loop.
Found by: PVS-Studio
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ae/if_ae.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ae/if_ae.c b/sys/dev/ae/if_ae.c index 6108f81..b887056 100644 --- a/sys/dev/ae/if_ae.c +++ b/sys/dev/ae/if_ae.c @@ -1660,7 +1660,7 @@ ae_stop_rxmac(ae_softc_t *sc) /* * Wait for IDLE state. */ - for (i = 0; i < AE_IDLE_TIMEOUT; i--) { + for (i = 0; i < AE_IDLE_TIMEOUT; i++) { val = AE_READ_4(sc, AE_IDLE_REG); if ((val & (AE_IDLE_RXMAC | AE_IDLE_DMAWRITE)) == 0) break; |