Fix an infinite loop in siba_bwn_suspend().

CID:		3536
Found with:	Coverity Prevent(tm)
MFC after:	1 week
This commit is contained in:
Christian Brueffer 2011-10-08 12:09:57 +00:00
parent 73430055e6
commit 37b14fc83c

View File

@ -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);
}