From b1fa16d4290f4bf4dd4685f36f23ab7da0a2af16 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sun, 3 Nov 2024 15:22:29 +0000 Subject: [PATCH] DWC OTG: Fix an assertion check on rx buffer allocation --- src/usb/hw_dwc_otg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usb/hw_dwc_otg.c b/src/usb/hw_dwc_otg.c index 3d316f3..a802b61 100644 --- a/src/usb/hw_dwc_otg.c +++ b/src/usb/hw_dwc_otg.c @@ -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); }