Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-3-0] src/sys/dev/usb



Module Name:    src
Committed By:   riz
Date:           Fri Aug 11 04:24:51 UTC 2006

Modified Files:
        src/sys/dev/usb [netbsd-3-0]: 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.7 -r1.91.2.7.2.1 src/sys/dev/usb/ehci.c
cvs rdiff -r1.157 -r1.157.4.1 src/sys/dev/usb/ohci.c
cvs rdiff -r1.185.2.1 -r1.185.2.1.2.1 src/sys/dev/usb/uhci.c
cvs rdiff -r1.73 -r1.73.8.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.




Home | Main Index | Thread Index | Old Index