Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Fix the KASSERT in dwc_otg_poll



details:   https://anonhg.NetBSD.org/src/rev/bec5cbc0b8e0
branches:  trunk
changeset: 783880:bec5cbc0b8e0
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Jan 11 13:01:44 2013 +0000

description:
Fix the KASSERT in dwc_otg_poll

diffstat:

 sys/dev/usb/dwc_otg.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6eb33195430e -r bec5cbc0b8e0 sys/dev/usb/dwc_otg.c
--- a/sys/dev/usb/dwc_otg.c     Fri Jan 11 12:55:29 2013 +0000
+++ b/sys/dev/usb/dwc_otg.c     Fri Jan 11 13:01:44 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwc_otg.c,v 1.7 2013/01/11 02:20:41 jmcneill Exp $     */
+/*     $NetBSD: dwc_otg.c,v 1.8 2013/01/11 13:01:44 skrll Exp $        */
 
 /*-
  * Copyright (c) 2012 Hans Petter Selasky. All rights reserved.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.7 2013/01/11 02:20:41 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.8 2013/01/11 13:01:44 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -569,7 +569,7 @@
 {
        struct dwc_otg_softc *sc = bus->hci_private;
 
-       KASSERT(mutex_owned(&sc->sc_lock));
+       KASSERT(sc->sc_bus.use_polling || mutex_owned(&sc->sc_lock));
        mutex_spin_enter(&sc->sc_intr_lock);
        dwc_otg_interrupt(sc);
        mutex_spin_exit(&sc->sc_intr_lock);



Home | Main Index | Thread Index | Old Index