summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-12-09 00:55:50 +0000
committerjoe <joe@FreeBSD.org>2002-12-09 00:55:50 +0000
commitbe86fd2558bcd546635b3a991e38e2b0b746e8e6 (patch)
tree6bf2f730816aaf63d712e527f152b5776a6259bd /sys/dev/usb
parent8794d1e19d92503cd4845896e0cbb6a11d20b1b3 (diff)
downloadFreeBSD-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/dev/usb')
-rw-r--r--sys/dev/usb/ohci.c2
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");
OpenPOWER on IntegriCloud