Source-Changes-HG archive

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

[src/jmcneill-usbmp]: src/sys/dev/usb kassert the right lock.



details:   https://anonhg.NetBSD.org/src/rev/18ea2d6c685c
branches:  jmcneill-usbmp
changeset: 771781:18ea2d6c685c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Dec 06 05:26:26 2011 +0000

description:
kassert the right lock.

diffstat:

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

diffs (27 lines):

diff -r 92c20e9b9f23 -r 18ea2d6c685c sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Tue Dec 06 05:06:50 2011 +0000
+++ b/sys/dev/usb/uhci.c        Tue Dec 06 05:26:26 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.240.6.2 2011/12/06 05:06:50 mrg Exp $       */
+/*     $NetBSD: uhci.c,v 1.240.6.3 2011/12/06 05:26:26 mrg Exp $       */
 /*     $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $       */
 
 /*
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.240.6.2 2011/12/06 05:06:50 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.240.6.3 2011/12/06 05:26:26 mrg Exp $");
 
 #include "opt_usb.h"
 
@@ -1323,7 +1323,7 @@
        }
 #endif
 
-       KASSERT(mutex_owned(&sc->sc_lock));
+       KASSERT(mutex_owned(&sc->sc_intr_lock));
 
        status = UREAD2(sc, UHCI_STS) & UHCI_STS_ALLINTRS;
        if (status == 0)        /* The interrupt was not for us. */



Home | Main Index | Thread Index | Old Index