diff options
| author | pete-pjb <[email protected]> | 2023-01-03 10:33:36 +0000 |
|---|---|---|
| committer | pete-pjb <[email protected]> | 2023-01-03 10:33:36 +0000 |
| commit | f5cffeedec863c1efd59688fa79a8455046e8377 (patch) | |
| tree | f624f98e929704ec6b592b41a6177563916e05cb /src/portable | |
| parent | 549bee94add9d8f1c346bfa0fa6b25481db3f191 (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.c | 2 |
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 |
