Skip to content

Commit e6355ad

Browse files
committed
[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>
1 parent 61be2b9 commit e6355ad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/media/pci/saa7134/saa7134-alsa.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ static void saa7134_irq_alsa_done(struct saa7134_dev *dev,
172172
dprintk("irq: overrun [full=%d/%d] - Blocks in %d\n",dev->dmasound.read_count,
173173
dev->dmasound.bufsize, dev->dmasound.blocks);
174174
spin_unlock(&dev->slock);
175+
snd_pcm_stream_lock(dev->dmasound.substream);
175176
snd_pcm_stop(dev->dmasound.substream,SNDRV_PCM_STATE_XRUN);
177+
snd_pcm_stream_unlock(dev->dmasound.substream);
176178
return;
177179
}
178180

0 commit comments

Comments
 (0)