cvs commit: src/sys/dev/usb ugen.c
Brian Feldman
green at FreeBSD.org
Sat Oct 2 15:33:27 PDT 2004
green 2004-10-02 22:33:27 UTC
FreeBSD src repository
Modified files:
sys/dev/usb ugen.c
Log:
* When toggling short transfers on a bulk transfer endpoint, cancel and
restart the current waiting transfer. If this isn't done, the device's
next transfer (that we would like to do a short read on) is going to
return an error -- for short transfer.
* For bulk transfer endpoints, restore the maximum transfer length each
time a transfer is done, or the first short transfer will make all the
rest that size or smaller.
* Remove impossibilities (malloc(M_WAITOK) == NULL, &var == NULL).
Revision Changes Path
1.93 +22 -20 src/sys/dev/usb/ugen.c
More information about the cvs-all
mailing list