Module Name: src
Committed By: pgoyette
Date: Wed Jul 18 20:50:40 UTC 2012
Modified Files:
src/sys/dev/sysmon: sysmon_envsys_events.c
Log Message:
Release the mutex before taking a quick exit.
To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/sys/dev/sysmon/sysmon_envsys_events.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/sysmon/sysmon_envsys_events.c
diff -u src/sys/dev/sysmon/sysmon_envsys_events.c:1.101 src/sys/dev/sysmon/sysmon_envsys_events.c:1.102
--- src/sys/dev/sysmon/sysmon_envsys_events.c:1.101 Mon Jul 16 13:55:01 2012
+++ src/sys/dev/sysmon/sysmon_envsys_events.c Wed Jul 18 20:50:40 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_envsys_events.c,v 1.101 2012/07/16 13:55:01 pgoyette Exp $ */
+/* $NetBSD: sysmon_envsys_events.c,v 1.102 2012/07/18 20:50:40 pgoyette Exp $ */
/*-
* Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.101 2012/07/16 13:55:01 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.102 2012/07/18 20:50:40 pgoyette Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -186,8 +186,10 @@ sme_event_register(prop_dictionary_t sdi
}
break;
}
- if (crittype == PENVSYS_EVENT_NULL && see != NULL)
+ if (crittype == PENVSYS_EVENT_NULL && see != NULL) {
+ mutex_exit(&sme->sme_mtx);
return EEXIST;
+ }
if (see == NULL) {
/*