Fix test for deciding when a bulk IN transfer got truncated. I thought

I fixed this last night, but apparently I only applied the patch to the
copy of the code in /dev/brain0.
This commit is contained in:
Bill Paul 2000-01-20 19:57:43 +00:00
parent 9882bd8c33
commit 58295f6ace
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56341

View File

@ -989,7 +989,7 @@ static void aue_rxeof(xfer, priv, status)
* split transfer. We really need a more reliable way
* to detect this.
*/
if (r.aue_pktlen != AUE_CUTOFF && total_len == AUE_CUTOFF) {
if (total_len == AUE_CUTOFF && r.aue_pktlen != (AUE_CUTOFF - 4)) {
c->aue_accum = AUE_CUTOFF;
usbd_setup_xfer(xfer, sc->aue_ep[AUE_ENDPT_RX],
c, mtod(c->aue_mbuf, char *) + AUE_CUTOFF,