Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb More use of uninitialized memory



details:   https://anonhg.NetBSD.org/src/rev/ab7e561252d2
branches:  trunk
changeset: 771602:ab7e561252d2
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Nov 26 03:14:25 2011 +0000

description:
More use of uninitialized memory

diffstat:

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

diffs (27 lines):

diff -r b84c48307c88 -r ab7e561252d2 sys/dev/usb/umidi.c
--- a/sys/dev/usb/umidi.c       Sat Nov 26 02:20:29 2011 +0000
+++ b/sys/dev/usb/umidi.c       Sat Nov 26 03:14:25 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umidi.c,v 1.49 2011/11/25 13:58:41 skrll Exp $ */
+/*     $NetBSD: umidi.c,v 1.50 2011/11/26 03:14:25 joerg Exp $ */
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.49 2011/11/25 13:58:41 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.50 2011/11/26 03:14:25 joerg Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -1148,7 +1148,7 @@
        u_int16_t mask;
        int err;
 
-       KASSERT(mutex_owned(&sc->sc_lock));
+       KASSERT(mutex_owned(&ep->sc->sc_lock));
 
        if (jack->opened) {
                ep = jack->endpoint;



Home | Main Index | Thread Index | Old Index