Subject: CVS commit: [netbsd-3] src/sys/dev/usb
To: None <source-changes@NetBSD.org>
From: Jeff Rizzo <riz@netbsd.org>
List: source-changes
Date: 08/11/2006 04:22:21
Module Name:	src
Committed By:	riz
Date:		Fri Aug 11 04:22:21 UTC 2006

Modified Files:
	src/sys/dev/usb [netbsd-3]: ehci.c ohci.c uhci.c usbdivar.h

Log Message:
Pull up following revision(s) (requested by abs in ticket #1459):
	sys/dev/usb/ehci.c: revision 1.96
	sys/dev/usb/uhci.c: revision 1.188
	sys/dev/usb/ohci.c: revision 1.159
	sys/dev/usb/usbdivar.h: revision 1.74
Fix a race condition in xfer abort.  Derived from a FreeBSD patch.
An xfer could be aborted twice (which means that the second abort might
access deallocated memory).  This happened when an xfer timed out and
the timeout started an abort.  While that abort was taking place the
xfer could be cancelled (usually by closing the pipe), causing a second
abort to begin.
This is now handled by having flags indicating the abort state of an xfer.
Hopefully this will fix the occasional crashes when printing.


To generate a diff of this commit:
cvs rdiff -r1.91.2.8 -r1.91.2.9 src/sys/dev/usb/ehci.c
cvs rdiff -r1.157 -r1.157.2.1 src/sys/dev/usb/ohci.c
cvs rdiff -r1.185.2.1 -r1.185.2.2 src/sys/dev/usb/uhci.c
cvs rdiff -r1.73 -r1.73.6.1 src/sys/dev/usb/usbdivar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.