Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/dmover dmoverioopen: add a missing simple_lock_init().



details:   https://anonhg.NetBSD.org/src/rev/787905cd503d
branches:  trunk
changeset: 587263:787905cd503d
user:      yamt <yamt%NetBSD.org@localhost>
date:      Tue Jan 17 12:10:51 2006 +0000

description:
dmoverioopen: add a missing simple_lock_init().

diffstat:

 sys/dev/dmover/dmover_io.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 9fb8864b7eb7 -r 787905cd503d sys/dev/dmover/dmover_io.c
--- a/sys/dev/dmover/dmover_io.c        Tue Jan 17 10:39:23 2006 +0000
+++ b/sys/dev/dmover/dmover_io.c        Tue Jan 17 12:10:51 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dmover_io.c,v 1.19 2005/12/24 20:27:29 perry Exp $     */
+/*     $NetBSD: dmover_io.c,v 1.20 2006/01/17 12:10:51 yamt Exp $      */
 
 /*
  * Copyright (c) 2002, 2003 Wasabi Systems, Inc.
@@ -55,7 +55,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.19 2005/12/24 20:27:29 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.20 2006/01/17 12:10:51 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/queue.h>
@@ -710,6 +710,7 @@
        splx(s);
 
        memset(ds, 0, sizeof(*ds));
+       simple_lock_init(&ds->ds_slock);
        TAILQ_INIT(&ds->ds_pending);
        TAILQ_INIT(&ds->ds_complete);
 



Home | Main Index | Thread Index | Old Index