Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern don't release mutexes you did not enter? Please dev...
details: https://anonhg.NetBSD.org/src/rev/da7c75eb75da
branches: trunk
changeset: 342125:da7c75eb75da
user: christos <christos%NetBSD.org@localhost>
date: Mon Dec 07 20:01:43 2015 +0000
description:
don't release mutexes you did not enter? Please develop with LOCKDEBUG on!
diffstat:
sys/kern/kern_drvctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 4fc0c80ebdff -r da7c75eb75da sys/kern/kern_drvctl.c
--- a/sys/kern/kern_drvctl.c Mon Dec 07 14:40:23 2015 +0000
+++ b/sys/kern/kern_drvctl.c Mon Dec 07 20:01:43 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_drvctl.c,v 1.40 2015/12/07 11:38:46 pgoyette Exp $ */
+/* $NetBSD: kern_drvctl.c,v 1.41 2015/12/07 20:01:43 christos Exp $ */
/*
* Copyright (c) 2004
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_drvctl.c,v 1.40 2015/12/07 11:38:46 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_drvctl.c,v 1.41 2015/12/07 20:01:43 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -614,8 +614,8 @@
case MODULE_CMD_INIT:
drvctl_init();
+ mutex_enter(&drvctl_lock);
#ifdef _MODULE
- mutex_enter(&drvctl_lock);
bmajor = cmajor = -1;
error = devsw_attach("drvctl", NULL, &bmajor,
&drvctl_cdevsw, &cmajor);
Home |
Main Index |
Thread Index |
Old Index