summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2015-05-09 10:27:32 +0000
committerjsg <jsg@openbsd.org>2015-05-09 10:27:32 +0000
commit0a64bdd0db2fc3c8c7d7eff4441642f262a58617 (patch)
tree9799fdeb0cfe423fcc84913de91304006a728070
parentNeed explicit <sys/kcore.h> include now. (diff)
downloadwireguard-openbsd-0a64bdd0db2fc3c8c7d7eff4441642f262a58617.tar.xz
wireguard-openbsd-0a64bdd0db2fc3c8c7d7eff4441642f262a58617.zip
Fix an occurance of mtx_enter() that should have been mtx_leave().
This line was originally an splx() before being converted to a mutex. ok ratchov@
-rw-r--r--sys/dev/isa/wss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/wss.c b/sys/dev/isa/wss.c
index 41602d67282..50ae7d4cc77 100644
--- a/sys/dev/isa/wss.c
+++ b/sys/dev/isa/wss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wss.c,v 1.27 2014/09/14 14:17:25 jsg Exp $ */
+/* $OpenBSD: wss.c,v 1.28 2015/05/09 10:27:32 jsg Exp $ */
/* $NetBSD: wss.c,v 1.42 1998/01/19 22:18:23 augustss Exp $ */
/*
@@ -422,7 +422,7 @@ mad_write(sc, port, value)
mtx_enter(&audio_lock);
bus_space_write_1(sc->sc_iot, sc->mad_ioh, MC_PASSWD_REG, pwd);
bus_space_write_1(sc->sc_iot, sc->mad_ioh, port, value & 0xff);
- mtx_enter(&audio_lock);
+ mtx_leave(&audio_lock);
}
void