From a5cab58e9a3fb6e168aba919c5669bea406573b4 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 4 Feb 2019 21:22:15 -0500 Subject: usb-ehci: Clear pipe token on pipe reallocate Make sure to clear the token before reuse as it may otherwise have an incorrect toggle setting. Signed-off-by: Kevin O'Connor (cherry picked from commit 996d3c0297135f12ff3eda40dcb464b2375926e5) --- src/hw/usb-ehci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hw/usb-ehci.c b/src/hw/usb-ehci.c index 7eca55b..d01fa85 100644 --- a/src/hw/usb-ehci.c +++ b/src/hw/usb-ehci.c @@ -467,6 +467,7 @@ ehci_realloc_pipe(struct usbdevice_s *usbdev, struct usb_pipe *upipe // Use previously allocated pipe. struct ehci_pipe *pipe = container_of(usbpipe, struct ehci_pipe, pipe); ehci_desc2pipe(pipe, usbdev, epdesc); + pipe->qh.token = 0; return usbpipe; } -- cgit v1.1