ASoC: stm32: sai: fix race condition in irq handler
authorOlivier Moysan <olivier.moysan@st.com>
Thu, 28 Feb 2019 13:19:23 +0000 (14:19 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 3 Mar 2019 23:39:35 +0000 (23:39 +0000)
commit26f98e82dd49b7c3cc5ef0edd882aa732a62b672
tree40bf947210a80edf03bf26a9055d6119606cae79
parentb8468192971807c43a80d6e2c41f83141cb7b211
ASoC: stm32: sai: 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_sai_sub.c