Skip to content

Commit

Permalink
ohci: Set skip on ed prior to removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzee119 committed Jun 5, 2022
1 parent a709d34 commit fba2efc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/portable/ohci/ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ static void ed_list_remove_by_addr(ohci_ed_t * p_head, uint8_t dev_addr)

if (ed->dev_addr == dev_addr)
{
//Prevent Host Controller from processing this ED while we remove it
ed->skip = 1;

// unlink ed
p_prev->next = ed->next;

Expand Down

0 comments on commit fba2efc

Please sign in to comment.