Module Name: src
Committed By: skrll
Date: Thu Jul 5 10:56:52 UTC 2012
Modified Files:
src/sys/arch/evbarm/dev: plcom.c
Log Message:
Fix locking botch introduced in 1.36.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/evbarm/dev/plcom.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/arch/evbarm/dev/plcom.c
diff -u src/sys/arch/evbarm/dev/plcom.c:1.38 src/sys/arch/evbarm/dev/plcom.c:1.39
--- src/sys/arch/evbarm/dev/plcom.c:1.38 Sun May 20 10:28:44 2012
+++ src/sys/arch/evbarm/dev/plcom.c Thu Jul 5 10:56:52 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: plcom.c,v 1.38 2012/05/20 10:28:44 skrll Exp $ */
+/* $NetBSD: plcom.c,v 1.39 2012/07/05 10:56:52 skrll Exp $ */
/*-
* Copyright (c) 2001 ARM Ltd
@@ -94,7 +94,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: plcom.c,v 1.38 2012/05/20 10:28:44 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: plcom.c,v 1.39 2012/07/05 10:56:52 skrll Exp $");
#include "opt_plcom.h"
#include "opt_ddb.h"
@@ -640,7 +640,7 @@ plcomopen(dev_t dev, int flag, int mode,
sc->ppsparam.mode = 0;
mutex_spin_exit(&timecounter_lock);
- mutex_spin_enter(&sc->sc_lock);
+ mutex_spin_exit(&sc->sc_lock);
/*
* Initialize the termios status to the defaults. Add in the