mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +00:00
Don't corrupt the ED list whilst removing an entry.
Submitted by: Bernd Walter <ticso@cicely8.cicely.de> Approved by: re (rwatson)
This commit is contained in:
parent
02ea085763
commit
317cca359c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107690
@ -1810,7 +1810,7 @@ ohci_rem_ed(ohci_soft_ed_t *sed, ohci_soft_ed_t *head)
|
||||
SPLUSBCHECK;
|
||||
|
||||
/* XXX */
|
||||
for (p = head; p == NULL && p->next != sed; p = p->next)
|
||||
for (p = head; p != NULL && p->next != sed; p = p->next)
|
||||
;
|
||||
if (p == NULL)
|
||||
panic("ohci_rem_ed: ED not found\n");
|
||||
|
Loading…
Reference in New Issue
Block a user