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

[media] saa7134: Fix unlocked snd_pcm_stop() call

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

Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+2
+2
drivers/media/pci/saa7134/saa7134-alsa.c
··· 172 172 dprintk("irq: overrun [full=%d/%d] - Blocks in %d\n",dev->dmasound.read_count, 173 173 dev->dmasound.bufsize, dev->dmasound.blocks); 174 174 spin_unlock(&dev->slock); 175 + snd_pcm_stream_lock(dev->dmasound.substream); 175 176 snd_pcm_stop(dev->dmasound.substream,SNDRV_PCM_STATE_XRUN); 177 + snd_pcm_stream_unlock(dev->dmasound.substream); 176 178 return; 177 179 } 178 180