Fix an infinite loop in siba_bwn_suspend().
CID: 3536 Found with: Coverity Prevent(tm) MFC after: 1 week
This commit is contained in:
parent
73430055e6
commit
37b14fc83c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user