]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 May 2019 16:36:05 +0000 (18:36 +0200)
commit6872cfa57c4289344f8d80a03e33ee56d6c8c8b0
tree585ffe3ff2e109dbbe8ad54bdb5464486ef572a4
parentb329de3769b0120c3152a57deb3a87a283f160bf
ASoC: stm32: sai: fix race condition in irq handler

[ Upstream commit 26f98e82dd49b7c3cc5ef0edd882aa732a62b672 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/stm/stm32_sai_sub.c