Properly free resources in case of an error.

CID:		4222
Found with:	Coverity Prevent(tm)
MFC after:	1 week
This commit is contained in:
Christian Brueffer 2011-10-15 22:27:35 +00:00
parent acdfc36a85
commit 32a1cc9317

View File

@ -208,6 +208,7 @@ siba_bwn_suspend(device_t dev)
if (error) {
for (j = 0; j < i; j++)
DEVICE_RESUME(devlistp[j]);
free(devlistp, M_TEMP);
return (error);
}
}