Skip to content

Commit

Permalink
DWC OTG: Fix an assertion check on rx buffer allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
keirf committed Nov 3, 2024
1 parent 45821de commit b1fa16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb/hw_dwc_otg.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ static void dwc_otg_configure_ep(uint8_t epnr, uint8_t type, uint32_t size)
* Check we aren't trying to map it to multiple endpoints. */
ep->rx = NULL;
for (i = 0; i < conf_nr_ep; i++)
ASSERT(ep->rx != rx_bufn);
ASSERT(eps[i].rx != rx_bufn);
ep->rx = rx_bufn;
ep->rx_nr = ARRAY_SIZE(rx_bufn);
}
Expand Down

0 comments on commit b1fa16d

Please sign in to comment.