summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2003-01-05 07:32:33 +0000
committergreen <green@FreeBSD.org>2003-01-05 07:32:33 +0000
commit406f1a874f26620453626d27da3c4f53c5839e1a (patch)
treefbc653ca4a44849f4975561413ae0871c49cc534 /sys/dev/sound
parent0e542465928d3dd785b1dbf5db44c750200fb99f (diff)
downloadFreeBSD-src-406f1a874f26620453626d27da3c4f53c5839e1a.zip
FreeBSD-src-406f1a874f26620453626d27da3c4f53c5839e1a.tar.gz
Fix the duplicate unlock of the pcm read channel in certain cases.
Reviewed by: cg
Diffstat (limited to 'sys/dev/sound')
-rw-r--r--sys/dev/sound/pcm/dsp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
index 7baa442..dd69dcf 100644
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -293,7 +293,6 @@ dsp_open(dev_t i_dev, int flags, int mode, struct thread *td)
CHN_LOCK(rdch);
pcm_chnref(rdch, -1);
pcm_chnrelease(rdch);
- CHN_UNLOCK(rdch);
}
pcm_unlock(d);
splx(s);
OpenPOWER on IntegriCloud