Source-Changes archive

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

CVS commit: src/sys/dev/usb



Module Name:    src
Committed By:   augustss
Date:           Sat Apr 30 14:38:40 UTC 2005

Modified Files:
        src/sys/dev/usb: ehci.c ohci.c uhci.c usbdivar.h

Log Message:
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.95 -r1.96 src/sys/dev/usb/ehci.c
cvs rdiff -r1.158 -r1.159 src/sys/dev/usb/ohci.c
cvs rdiff -r1.187 -r1.188 src/sys/dev/usb/uhci.c
cvs rdiff -r1.73 -r1.74 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