summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-02-04 21:22:15 -0500
committerGerd Hoffmann <kraxel@redhat.com>2019-03-14 13:11:53 +0100
commita5cab58e9a3fb6e168aba919c5669bea406573b4 (patch)
tree93627f5e3c03ab60e5c9c4596a4d1eb73e1d881c
parent7d63249ef80e31668f948d317e3590ab22cbe9c8 (diff)
downloadqemu-seabios-1.12-stable.tar.gz
usb-ehci: Clear pipe token on pipe reallocaterel-1.12.11.12-stable
Make sure to clear the token before reuse as it may otherwise have an incorrect toggle setting. Signed-off-by: Kevin O'Connor <kevin@koconnor.net> (cherry picked from commit 996d3c0297135f12ff3eda40dcb464b2375926e5)
-rw-r--r--src/hw/usb-ehci.c1
1 files changed, 1 insertions, 0 deletions
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;
}