]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: rate - fix the crash in snd_pcm_rate_may_wait_for_avail_min()
authorJaroslav Kysela <perex@perex.cz>
Wed, 9 Nov 2022 07:11:42 +0000 (08:11 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 9 Nov 2022 07:18:06 +0000 (08:18 +0100)
commitaa4f56c3c952269c36464cc0da9db5a1381648fa
tree14de682d89f208e7391f3a596e17a57b7967a404
parent1b436862ed6253629d79edc2e09826efd4e0f4e3
pcm: rate - fix the crash in snd_pcm_rate_may_wait_for_avail_min()

The pcm argument passed to the conversion function in
snd_pcm_plugin_may_wait_for_avail_min_conv() should be
pcm->fast_op_arg.

Test command: arecord -Dplughw:x -r12000 -c2 -fS16_LE -M temp.wav

Fixes: d9dbb57b ("pcm: rate - rewrite the may_wait_for_avail_min callback for the rate plugin")
BugLink: https://lore.kernel.org/alsa-devel/1667793912-18957-1-git-send-email-shengjiu.wang@nxp.com/
Fixes: https://github.com/alsa-project/alsa-lib/issues/282
Reported-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_plugin.c