Skip to content

Commit b534f8f

Browse files
tiwaigregkh
authored andcommitted
media: saa7134: Fix unlocked snd_pcm_stop() call
commit e6355ad upstream. snd_pcm_stop() must be called in the PCM substream lock context. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7b4fc5f commit b534f8f

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)