diff options
author | brueffer <brueffer@FreeBSD.org> | 2011-10-08 12:09:57 +0000 |
---|---|---|
committer | brueffer <brueffer@FreeBSD.org> | 2011-10-08 12:09:57 +0000 |
commit | 6ddde1235ac86a7d7495cd200e19c95c8b1685f7 (patch) | |
tree | 6792ec1e6dad7915eb21cf68e3e67196ab09c570 /sys/dev | |
parent | 5f806d203a9e0e1d0d0c6811595c265626817372 (diff) | |
download | FreeBSD-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
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/siba/siba_bwn.c | 2 |
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); } |