PERFORCE change 129950 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sat Dec 1 17:25:15 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=129950
Change 129950 by hselasky at hselasky_laptop001 on 2007/12/02 01:24:57
Avoid infinite loop in case of failure.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/usb_subr.c#60 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/usb_subr.c#60 (text+ko) ====
@@ -2090,6 +2090,9 @@
*/
while (align < size) {
align *= 2;
+ if (align == 0) {
+ goto error;
+ }
}
}
/* get the correct DMA tag */
More information about the p4-projects
mailing list