Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Dec 2007 01:25:14 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 129950 for review
Message-ID:  <200712020125.lB21PEIB024855@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=129950

Change 129950 by hselasky@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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712020125.lB21PEIB024855>