From 58295f6acea3d284b90459e4f23c26fd33885831 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Thu, 20 Jan 2000 19:57:43 +0000 Subject: [PATCH] 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. --- sys/dev/usb/if_aue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c index 7971fc397dc4..f321a63443ba 100644 --- a/sys/dev/usb/if_aue.c +++ b/sys/dev/usb/if_aue.c @@ -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,