diff options
| author | Ryzee119 <[email protected]> | 2026-08-12 20:40:15 +0930 |
|---|---|---|
| committer | Ryzee119 <[email protected]> | 2026-08-12 20:41:28 +0930 |
| commit | 73e787ae418df76b79ac0fd31bb0674a72e68c88 (patch) | |
| tree | 0a9c444705b8489e8d812e045b8bca5d8621f9a1 | |
| parent | 32530d8f4b6cd6d6f7a7df7e6358856c7ebc4f5e (diff) | |
ohci: fix double allocation of dummy TDs in gtd_find_free
| -rw-r--r-- | src/portable/ohci/ohci.c | 1 |
1 files changed, 1 insertions, 0 deletions
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]; } } |
