svn commit: r368103 - stable/12/sys/dev/sound/pcm
Konstantin Belousov
kib at FreeBSD.org
Fri Nov 27 11:51:08 UTC 2020
Author: kib
Date: Fri Nov 27 11:51:07 2020
New Revision: 368103
URL: https://svnweb.freebsd.org/changeset/base/368103
Log:
MFC r367892:
Unlock channels when any of them are locked, when returning for non-busy state.
Modified:
stable/12/sys/dev/sound/pcm/dsp.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/sound/pcm/dsp.c
==============================================================================
--- stable/12/sys/dev/sound/pcm/dsp.c Fri Nov 27 11:48:33 2020 (r368102)
+++ stable/12/sys/dev/sound/pcm/dsp.c Fri Nov 27 11:51:07 2020 (r368103)
@@ -858,6 +858,8 @@ dsp_io_ops(struct cdev *i_dev, struct uio *buf)
getchns(i_dev, &rdch, &wrch, prio);
if (*ch == NULL || !((*ch)->flags & CHN_F_BUSY)) {
+ if (rdch != NULL || wrch != NULL)
+ relchns(i_dev, rdch, wrch, prio);
PCM_GIANT_EXIT(d);
return (EBADF);
}
More information about the svn-src-all
mailing list