summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-01-20 19:57:43 +0000
committerwpaul <wpaul@FreeBSD.org>2000-01-20 19:57:43 +0000
commitb5ac56c3392d5ae818a3d45c102ae026be93b76f (patch)
tree8f942aea2a6d9e1fbf5738b43e934a7c06eaf27c /sys
parent2d1d6c5a2f2709385738f45d7d61fc530662cf11 (diff)
downloadFreeBSD-src-b5ac56c3392d5ae818a3d45c102ae026be93b76f.zip
FreeBSD-src-b5ac56c3392d5ae818a3d45c102ae026be93b76f.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/if_aue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c
index 7971fc3..f321a63 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,
OpenPOWER on IntegriCloud