Date: Tue, 11 May 2010 00:04:18 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 178078 for review Message-ID: <201005110004.o4B04IO0093042@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@178078?ac=10 Change 178078 by hselasky@hselasky_laptop001 on 2010/05/11 00:03:19 Back out double-call check from P4 change 178075. This should not be possible from open/close after all. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_hub.c#44 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_hub.c#44 (text+ko) ==== @@ -1230,11 +1230,6 @@ if (udev->flags.usb_mode != USB_MODE_HOST) return; /* not supported */ - if (xfer->flags_int.bandwidth_reclaimed != 0) - return; /* bandwidth already allocated */ - - xfer->flags_int.bandwidth_reclaimed = 1; - xfer->endpoint->refcount_bw++; if (xfer->endpoint->refcount_bw != 1) return; /* already allocated */ @@ -1315,11 +1310,6 @@ if (udev->flags.usb_mode != USB_MODE_HOST) return; /* not supported */ - if (xfer->flags_int.bandwidth_reclaimed == 0) - return; /* bandwidth already freed */ - - xfer->flags_int.bandwidth_reclaimed = 0; - xfer->endpoint->refcount_bw--; if (xfer->endpoint->refcount_bw != 0) return; /* still allocated */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005110004.o4B04IO0093042>