Skip to content

Commit 1f4037b

Browse files
committed
Protect snd_pcm_stop() with snd_pcm_stream_lock_irq()
Signed-off-by: Antonio Ospite <[email protected]>
1 parent fd42bc9 commit 1f4037b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pcm.c

+2
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,10 @@ void hiface_pcm_abort(struct hiface_chip *chip)
554554
rt->panic = true;
555555

556556
if (rt->playback.instance) {
557+
snd_pcm_stream_lock_irq(rt->playback.instance);
557558
snd_pcm_stop(rt->playback.instance,
558559
SNDRV_PCM_STATE_XRUN);
560+
snd_pcm_stream_unlock_irq(rt->playback.instance);
559561
}
560562
mutex_lock(&rt->stream_mutex);
561563
hiface_pcm_stream_stop(rt);

0 commit comments

Comments
 (0)