ASoC: stm32: i2s: fix race condition in irq handler
authorOlivier Moysan <olivier.moysan@st.com>
Tue, 26 Feb 2019 13:51:09 +0000 (14:51 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 26 Feb 2019 15:41:56 +0000 (15:41 +0000)
commit3005decf4fe43e65d882dce838716bd6715757c1
tree71c26d76016fe3118630e49d86f3848751a1c431
parent88dce52ee9b58b627cf75f5aeb53ab5ea6340472
ASoC: stm32: i2s: fix race condition in irq handler

When snd_pcm_stop_xrun() is called in interrupt routine,
substream context may have already been released.
Add protection on substream context.

Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/stm/stm32_i2s.c