--- zzzz-none-000/linux-4.4.60/sound/core/pcm_timer.c 2017-04-08 07:53:53.000000000 +0000 +++ jet-2400-727/linux-4.4.60/sound/core/pcm_timer.c 2021-03-17 14:36:41.000000000 +0000 @@ -65,9 +65,16 @@ static unsigned long snd_pcm_timer_resolution(struct snd_timer * timer) { struct snd_pcm_substream *substream; + unsigned long ret = 0, flags = 0; substream = timer->private_data; - return substream->runtime ? substream->runtime->timer_resolution : 0; + spin_lock_irqsave(&substream->runtime_lock, flags); + if (substream->runtime) + ret = substream->runtime->timer_resolution; + else + ret = 0; + spin_unlock_irqrestore(&substream->runtime_lock, flags); + return ret; } static int snd_pcm_timer_start(struct snd_timer * timer)