summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorpete-pjb <[email protected]>2023-01-03 10:33:36 +0000
committerpete-pjb <[email protected]>2023-01-03 10:33:36 +0000
commitf5cffeedec863c1efd59688fa79a8455046e8377 (patch)
treef624f98e929704ec6b592b41a6177563916e05cb /src/portable
parent549bee94add9d8f1c346bfa0fa6b25481db3f191 (diff)
Fix typo in audio.h. Specifiy _ctrl_xfer struct in CFG_TUSB_MEM_SECTION
Add NULL check to loop in list_remove_qhd_by_addr() function in ehci.c
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/ehci/ehci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/ehci/ehci.c b/src/portable/ehci/ehci.c
index 80f616478..7140897a1 100644
--- a/src/portable/ehci/ehci.c
+++ b/src/portable/ehci/ehci.c
@@ -188,7 +188,7 @@ tusb_speed_t hcd_port_speed_get(uint8_t rhport)
static void list_remove_qhd_by_addr(ehci_link_t* list_head, uint8_t dev_addr)
{
for(ehci_link_t* prev = list_head;
- !prev->terminate && (tu_align32(prev->address) != (uint32_t) list_head);
+ !prev->terminate && (tu_align32(prev->address) != (uint32_t) list_head) && prev != NULL;
prev = list_next(prev) )
{
// TODO check type for ISO iTD and siTD