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:
Josef Karthauser 2002-12-09 00:55:50 +00:00
parent 02ea085763
commit 317cca359c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107690

View File

@ -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");