summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorskrll <skrll@NetBSD.org>2016-05-06 16:30:01 +0000
committerskrll <skrll@NetBSD.org>2016-05-06 16:30:01 +0000
commit45a02fef5d1bbed0ee363b278a2e5dfbecd227b9 (patch)
tree877a340afc2820bcde195bd0b5de3326298032f4 /sys/dev
parentcd075ad0697e42d2969bdb1bd030c32971241df8 (diff)
Fix a KASSERT (ub_usepolling || mutex)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/ehci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index a99008e4b22..22794344bef 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci.c,v 1.250 2016/05/06 13:03:06 skrll Exp $ */
+/* $NetBSD: ehci.c,v 1.251 2016/05/06 16:30:01 skrll Exp $ */
/*
* Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.250 2016/05/06 13:03:06 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.251 2016/05/06 16:30:01 skrll Exp $");
#include "ohci.h"
#include "uhci.h"
@@ -3905,7 +3905,7 @@ ehci_device_bulk_done(struct usbd_xfer *xfer)
DPRINTF("xfer=%p, actlen=%d", xfer, xfer->ux_actlen, 0, 0);
- KASSERT(mutex_owned(&sc->sc_lock));
+ KASSERT(sc->sc_bus.ub_usepolling || mutex_owned(&sc->sc_lock));
usb_syncmem(&xfer->ux_dmabuf, 0, xfer->ux_length,
rd ? BUS_DMASYNC_POSTREAD : BUS_DMASYNC_POSTWRITE);