Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Don't call mutex_spin_exit on already released l...
details: https://anonhg.NetBSD.org/src/rev/8672f2694198
branches: trunk
changeset: 790209:8672f2694198
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Sep 27 13:34:48 2013 +0000
description:
Don't call mutex_spin_exit on already released lock.
diffstat:
sys/dev/usb/uaudio.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 0376f84b125a -r 8672f2694198 sys/dev/usb/uaudio.c
--- a/sys/dev/usb/uaudio.c Thu Sep 26 16:18:52 2013 +0000
+++ b/sys/dev/usb/uaudio.c Fri Sep 27 13:34:48 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uaudio.c,v 1.138 2013/09/15 15:04:47 martin Exp $ */
+/* $NetBSD: uaudio.c,v 1.139 2013/09/27 13:34:48 skrll Exp $ */
/*
* Copyright (c) 1999, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.138 2013/09/15 15:04:47 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.139 2013/09/27 13:34:48 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2602,7 +2602,6 @@
ch->intr = intr;
ch->arg = arg;
- mutex_spin_exit(&sc->sc_intr_lock);
for (i = 0; i < UAUDIO_NCHANBUFS-1; i++) /* XXX -1 shouldn't be needed */
uaudio_chan_rtransfer(ch);
mutex_spin_enter(&sc->sc_intr_lock);
@@ -2649,7 +2648,6 @@
ch->intr = intr;
ch->arg = arg;
- mutex_spin_exit(&sc->sc_intr_lock);
for (i = 0; i < UAUDIO_NCHANBUFS-1; i++) /* XXX */
uaudio_chan_ptransfer(ch);
mutex_spin_enter(&sc->sc_intr_lock);
Home |
Main Index |
Thread Index |
Old Index