Date: Sun, 28 May 2006 23:37:04 +0000 (UTC) From: Ian Dowse <iedowse@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb ehci.c ohci.c uhci.c Message-ID: <200605282337.k4SNb5Qh010484@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605282337.k4SNb5Qh010484>
