diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2017-09-04 11:24:09 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2017-09-04 11:24:09 +0000 |
commit | 1a16d4d7d3982f57008310f1fe4a72500f3198f1 (patch) | |
tree | c3e5b625c7f9c8d1080f22a6e28fe00d41f13f9a /sys/dev/usb/xhci.c | |
parent | 75bc3e6b05281a89beac582a0b2cec60e11a1214 (diff) |
Revert previous: "Fix a remaining length miscalculation in xhci(4)."
It made one of my machines get stuck during boot.
Diffstat (limited to 'sys/dev/usb/xhci.c')
-rw-r--r-- | sys/dev/usb/xhci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c index 79e930c9159..450b1a43603 100644 --- a/sys/dev/usb/xhci.c +++ b/sys/dev/usb/xhci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xhci.c,v 1.75 2017/09/01 16:01:27 stsp Exp $ */ +/* $OpenBSD: xhci.c,v 1.76 2017/09/04 11:24:08 stsp Exp $ */ /* * Copyright (c) 2014-2015 Martin Pieuchot @@ -2571,7 +2571,7 @@ xhci_device_generic_start(struct usbd_xfer *xfer) /* We'll do the first TRB once we're finished with the chain. */ trb0 = xhci_xfer_get_trb(sc, xfer, &toggle0, (ntrb == 1)); - remain = xfer->length; + remain = xfer->length - len0; paddr += len0; len = min(remain, XHCI_TRB_MAXSIZE); |