Author: brueffer
Date: Sat Oct 15 22:27:35 2011
New Revision: 226406
URL: http://svn.freebsd.org/changeset/base/226406
Log:
Properly free resources in case of an error.
CID: 4222
Found with: Coverity Prevent(tm)
MFC after: 1 week
Modified:
head/sys/dev/siba/siba_bwn.c
Modified: head/sys/dev/siba/siba_bwn.c
==============================================================================
--- head/sys/dev/siba/siba_bwn.c Sat Oct 15 21:23:04 2011
(r226405)
+++ head/sys/dev/siba/siba_bwn.c Sat Oct 15 22:27:35 2011
(r226406)
@@ -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);
}
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"