From 4797f766ea8443c3af977e4f52d1459750f42e06 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 7 Dec 2015 20:01:43 +0000 Subject: [PATCH] don't release mutexes you did not enter? Please develop with LOCKDEBUG on! --- sys/kern/kern_drvctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_drvctl.c b/sys/kern/kern_drvctl.c index b81915e8c867..405bea96762e 100644 --- a/sys/kern/kern_drvctl.c +++ b/sys/kern/kern_drvctl.c @@ -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 -__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 #include @@ -614,8 +614,8 @@ drvctl_modcmd(modcmd_t cmd, void *arg) case MODULE_CMD_INIT: drvctl_init(); -#ifdef _MODULE mutex_enter(&drvctl_lock); +#ifdef _MODULE bmajor = cmajor = -1; error = devsw_attach("drvctl", NULL, &bmajor, &drvctl_cdevsw, &cmajor);