diff --git a/hw/usb/hcd-musb.c b/hw/usb/hcd-musb.c index 6dca373cb1fa..0300aeaec6e7 100644 --- a/hw/usb/hcd-musb.c +++ b/hw/usb/hcd-musb.c @@ -368,6 +368,8 @@ void musb_reset(MUSBState *s) s->ep[i].maxp[1] = 0x40; s->ep[i].musb = s; s->ep[i].epnum = i; + usb_packet_cleanup(&s->ep[i].packey[0].p); + usb_packet_cleanup(&s->ep[i].packey[1].p); usb_packet_init(&s->ep[i].packey[0].p); usb_packet_init(&s->ep[i].packey[1].p); }