From 73e787ae418df76b79ac0fd31bb0674a72e68c88 Mon Sep 17 00:00:00 2001 From: Ryzee119 Date: Wed, 12 Aug 2026 20:40:15 +0930 Subject: ohci: fix double allocation of dummy TDs in gtd_find_free --- src/portable/ohci/ohci.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/portable/ohci/ohci.c b/src/portable/ohci/ohci.c index e2c5956b3..a294c5f5f 100644 --- a/src/portable/ohci/ohci.c +++ b/src/portable/ohci/ohci.c @@ -400,6 +400,7 @@ static void ed_list_remove_by_addr(ohci_ed_t * p_head, uint8_t dev_addr) { static ohci_gtd_t* gtd_find_free(void) { for (uint8_t i = 0; i < GTD_MAX; i++) { if (!ohci_data.gtd_pool[i].used) { + ohci_data.gtd_pool[i].used = 1; return &ohci_data.gtd_pool[i]; } } -- cgit v1.3.1