Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sysmon Release the mutex in the error path.
details: https://anonhg.NetBSD.org/src/rev/d701d5e9d989
branches: trunk
changeset: 337720:d701d5e9d989
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sat Apr 25 00:54:14 2015 +0000
description:
Release the mutex in the error path.
diffstat:
sys/dev/sysmon/sysmon_envsys.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r b9841f4a5ced -r d701d5e9d989 sys/dev/sysmon/sysmon_envsys.c
--- a/sys/dev/sysmon/sysmon_envsys.c Fri Apr 24 23:36:48 2015 +0000
+++ b/sys/dev/sysmon/sysmon_envsys.c Sat Apr 25 00:54:14 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_envsys.c,v 1.133 2015/04/24 11:34:14 pgoyette Exp $ */
+/* $NetBSD: sysmon_envsys.c,v 1.134 2015/04/25 00:54:14 pgoyette Exp $ */
/*-
* Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.133 2015/04/24 11:34:14 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.134 2015/04/25 00:54:14 pgoyette Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -779,6 +779,7 @@
mutex_enter(&sme_global_mtx);
if (!prop_dictionary_set(sme_propd, sme->sme_name, array)) {
error = EINVAL;
+ mutex_exit(&sme_global_mtx);
DPRINTF(("%s: prop_dictionary_set for '%s'\n", __func__,
sme->sme_name));
goto out;
Home |
Main Index |
Thread Index |
Old Index