Skip to content

Commit

Permalink
Fix bug with larger USB packets being discarded
Browse files Browse the repository at this point in the history
  • Loading branch information
vintagepc authored Feb 24, 2024
1 parent 73fa9aa commit caeded5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/arm/prusa/stm32f407/stm32f4xx_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ static void STM32F4xx_handle_packet(STM32F4xxUSBState *s, uint32_t devadr, USBDe
}

if (p->packet.status == USB_RET_SUCCESS) {
if (actual > tlen) {
if (actual > tlen*hctsiz->PKTCNT) {
p->packet.status = USB_RET_BABBLE;
goto babble;
}
Expand Down

0 comments on commit caeded5

Please sign in to comment.