Skip to content
Commit f5cdc9d4 authored by paulhsia's avatar paulhsia Committed by Takashi Iwai
Browse files

ALSA: pcm: Fix stream lock usage in snd_pcm_period_elapsed()



If the nullity check for `substream->runtime` is outside of the lock
region, it is possible to have a null runtime in the critical section
if snd_pcm_detach_substream is called right before the lock.

Signed-off-by: default avatarpaulhsia <paulhsia@chromium.org>
Link: https://lore.kernel.org/r/20191112171715.128727-2-paulhsia@chromium.org


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 52869931
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment