summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2005-01-05 20:10:05 +0000
committerkeramida <keramida@FreeBSD.org>2005-01-05 20:10:05 +0000
commit9ad4cdef3be1367401975d9af84f64273f15ab28 (patch)
tree99d391bd7006834b48e98550fa71590a6fa0300e /sys/dev
parent867473d902ec5f059258a20587a23f494f390577 (diff)
downloadFreeBSD-src-9ad4cdef3be1367401975d9af84f64273f15ab28.zip
FreeBSD-src-9ad4cdef3be1367401975d9af84f64273f15ab28.tar.gz
Fix KASSERT inversion that was introduced in 1.150, resulting in instant
panic curlen != 0, which is perfectly normal. Approved by: mux
Diffstat (limited to 'sys/dev')
-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 11a5049..3cafad7 100644
--- a/sys/dev/usb/ohci.c
+++ b/sys/dev/usb/ohci.c
@@ -573,7 +573,7 @@ ohci_alloc_std_chain(struct ohci_pipe *opipe, ohci_softc_t *sc,
/* the length must be a multiple of the max size */
curlen -= curlen %
UGETW(opipe->pipe.endpoint->edesc->wMaxPacketSize);
- KASSERT ((curlen == 0), ("ohci_alloc_std: curlen == 0"));
+ KASSERT((curlen != 0), ("ohci_alloc_std: curlen == 0"));
}
DPRINTFN(4,("ohci_alloc_std_chain: dataphys=0x%08x "
"len=%d curlen=%d\n",
OpenPOWER on IntegriCloud