Fix the duplicate unlock of the pcm read channel in certain cases.

Reviewed by:	cg
This commit is contained in:
Brian Feldman 2003-01-05 07:32:33 +00:00
parent 94b6f028fd
commit a8be3e63ce

View File

@ -293,7 +293,6 @@ dsp_open(dev_t i_dev, int flags, int mode, struct thread *td)
CHN_LOCK(rdch); CHN_LOCK(rdch);
pcm_chnref(rdch, -1); pcm_chnref(rdch, -1);
pcm_chnrelease(rdch); pcm_chnrelease(rdch);
CHN_UNLOCK(rdch);
} }
pcm_unlock(d); pcm_unlock(d);
splx(s); splx(s);