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 before taking a quick exit.
details: https://anonhg.NetBSD.org/src/rev/5de9a18fc8c7
branches: trunk
changeset: 780274:5de9a18fc8c7
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Wed Jul 18 20:50:40 2012 +0000
description:
Release the mutex before taking a quick exit.
diffstat:
sys/dev/sysmon/sysmon_envsys_events.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 898a833e3bdd -r 5de9a18fc8c7 sys/dev/sysmon/sysmon_envsys_events.c
--- a/sys/dev/sysmon/sysmon_envsys_events.c Wed Jul 18 20:46:36 2012 +0000
+++ b/sys/dev/sysmon/sysmon_envsys_events.c Wed Jul 18 20:50:40 2012 +0000
@@ -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 @@
}
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) {
/*
Home |
Main Index |
Thread Index |
Old Index