Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: s6000: Fix unlocked snd_pcm_stop() call

snd_pcm_stop() must be called in the PCM substream lock context.

Cc: <stable@vger.kernel.org>
Acked-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+2
+2
sound/soc/s6000/s6000-pcm.c
··· 128 128 substream->runtime && 129 129 snd_pcm_running(substream)) { 130 130 dev_dbg(pcm->dev, "xrun\n"); 131 + snd_pcm_stream_lock(substream); 131 132 snd_pcm_stop(substream, SNDRV_PCM_STATE_XRUN); 133 + snd_pcm_stream_unlock(substream); 132 134 ret = IRQ_HANDLED; 133 135 } 134 136