cvs commit: src/sys/dev/usb ehci.c ohci.c uhci.c
Ian Dowse
iedowse at FreeBSD.org
Sun May 28 16:38:16 PDT 2006
iedowse 2006-05-28 23:37:04 UTC
FreeBSD src repository
Modified files:
sys/dev/usb ehci.c ohci.c uhci.c
Log:
If a zero-length bulk or interrupt transfer is requested then assume
USBD_FORCE_SHORT_XFER to ensure that we actually build and execute
a transfer. This means that the various alloc_sqtd_chain functions
will always construct a transfer, so it is safe to modify the
allocated descriptors on return. Previously there were cases where
a zero length transfer would cause a NULL dereference.
Reported by: bp
Revision Changes Path
1.47 +2 -1 src/sys/dev/usb/ehci.c
1.162 +7 -9 src/sys/dev/usb/ohci.c
1.169 +8 -8 src/sys/dev/usb/uhci.c
More information about the cvs-src
mailing list