diff options
author | joe <joe@FreeBSD.org> | 2002-12-09 00:55:50 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-12-09 00:55:50 +0000 |
commit | be86fd2558bcd546635b3a991e38e2b0b746e8e6 (patch) | |
tree | 6bf2f730816aaf63d712e527f152b5776a6259bd /sys | |
parent | 8794d1e19d92503cd4845896e0cbb6a11d20b1b3 (diff) | |
download | FreeBSD-src-be86fd2558bcd546635b3a991e38e2b0b746e8e6.zip FreeBSD-src-be86fd2558bcd546635b3a991e38e2b0b746e8e6.tar.gz |
Don't corrupt the ED list whilst removing an entry.
Submitted by: Bernd Walter <ticso@cicely8.cicely.de>
Approved by: re (rwatson)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/ohci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 9a248cd..dafccfd 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -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"); |