summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2011-10-08 12:09:57 +0000
committerbrueffer <brueffer@FreeBSD.org>2011-10-08 12:09:57 +0000
commit6ddde1235ac86a7d7495cd200e19c95c8b1685f7 (patch)
tree6792ec1e6dad7915eb21cf68e3e67196ab09c570
parent5f806d203a9e0e1d0d0c6811595c265626817372 (diff)
downloadFreeBSD-src-6ddde1235ac86a7d7495cd200e19c95c8b1685f7.zip
FreeBSD-src-6ddde1235ac86a7d7495cd200e19c95c8b1685f7.tar.gz
Fix an infinite loop in siba_bwn_suspend().
CID: 3536 Found with: Coverity Prevent(tm) MFC after: 1 week
-rw-r--r--sys/dev/siba/siba_bwn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/siba/siba_bwn.c b/sys/dev/siba/siba_bwn.c
index 1e0ba0d..36adbb4 100644
--- a/sys/dev/siba/siba_bwn.c
+++ b/sys/dev/siba/siba_bwn.c
@@ -206,7 +206,7 @@ siba_bwn_suspend(device_t dev)
for (i = 0 ; i < devcnt ; i++) {
error = DEVICE_SUSPEND(devlistp[i]);
if (error) {
- for (j = 0; j < i; i++)
+ for (j = 0; j < i; j++)
DEVICE_RESUME(devlistp[j]);
return (error);
}
OpenPOWER on IntegriCloud