summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-03-29 09:16:24 +0000
committerriastradh <riastradh@NetBSD.org>2022-03-29 09:16:24 +0000
commitd54ebec49ec61072be89ffe439df6f35a84bc92b (patch)
treea894bbbf20946d76e47a5d3862057ae0db2288c5 /sys/dev
parentb1252f77f92dd8c41d1f6e617aba7c6e413f4ee4 (diff)
cs4281(4): Fix lock ordering in suspend.
No idea if this code works -- obviously this path has never been tested in the >decade it's been here!
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/cs4281.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/cs4281.c b/sys/dev/pci/cs4281.c
index d97cfac7dc2..241828bbb64 100644
--- a/sys/dev/pci/cs4281.c
+++ b/sys/dev/pci/cs4281.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cs4281.c,v 1.57 2021/02/03 14:44:32 isaki Exp $ */
+/* $NetBSD: cs4281.c,v 1.58 2022/03/29 09:16:24 riastradh Exp $ */
/*
* Copyright (c) 2000 Tatoku Ogaito. All rights reserved.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cs4281.c,v 1.57 2021/02/03 14:44:32 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cs4281.c,v 1.58 2022/03/29 09:16:24 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -613,7 +613,7 @@ cs4281_suspend(device_t dv, const pmf_qual_t *qual)
struct cs428x_softc *sc = device_private(dv);
mutex_enter(&sc->sc_lock);
- mutex_spin_exit(&sc->sc_intr_lock);
+ mutex_spin_enter(&sc->sc_intr_lock);
/* save current playback status */
if (sc->sc_prun) {