aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJosef Karthauser <joe@FreeBSD.org>2002-12-09 00:55:50 +0000
committerJosef Karthauser <joe@FreeBSD.org>2002-12-09 00:55:50 +0000
commit317cca359cb01f89f28a14b8a8f9223e4e9c3ba8 (patch)
tree6bf2f730816aaf63d712e527f152b5776a6259bd /sys
parent02ea085763f5165d41d406083a66e30ee1158faa (diff)
downloadsrc-317cca359cb01f89f28a14b8a8f9223e4e9c3ba8.tar.gz
src-317cca359cb01f89f28a14b8a8f9223e4e9c3ba8.zip
Don't corrupt the ED list whilst removing an entry.
Submitted by: Bernd Walter <ticso@cicely8.cicely.de> Approved by: re (rwatson)
Notes
Notes: svn path=/head/; revision=107690
Diffstat (limited to 'sys')
-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 9a248cdba9cf..dafccfdb0246 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");