diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-04-19 11:12:59 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-04-19 11:12:59 +0000 |
commit | dbb964d19d93f2840dae601015aec75f3e656e8c (patch) | |
tree | 2bc9637955a9ba1f6d5cb6eb7d1de692d6b7bd7f /sys | |
parent | 1bf4f5f0a7203698230acbc8431612091a8e233d (diff) |
Do not truncate possible remaining transfer length.
Reported by Takahiro HAYASHI on bugs@, thanks!
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/xhci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c index 774bd87b759..69a61595ec3 100644 --- a/sys/dev/usb/xhci.c +++ b/sys/dev/usb/xhci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xhci.c,v 1.58 2015/01/21 14:02:33 mpi Exp $ */ +/* $OpenBSD: xhci.c,v 1.59 2015/04/19 11:12:58 mpi Exp $ */ /* * Copyright (c) 2014-2015 Martin Pieuchot @@ -714,7 +714,8 @@ xhci_event_xfer(struct xhci_softc *sc, uint64_t paddr, uint32_t status, struct xhci_pipe *xp; struct usbd_xfer *xfer; struct xhci_xfer *xx; - uint8_t dci, slot, code, remain; + uint8_t dci, slot, code; + uint32_t remain; int trb_idx; slot = XHCI_TRB_GET_SLOT(flags); |