summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/sof-pci-dev.c
diff options
context:
space:
mode:
authorKai Vehmanen <kai.vehmanen@linux.intel.com>2019-05-09 15:10:23 -0500
committerMark Brown <broonie@kernel.org>2019-05-13 12:37:12 +0100
commita69270d8bfeb35fc89d047ea6db803cd75a74f12 (patch)
tree4e59a25e93eada96c8d0e74b3d976f730fa5670f /sound/soc/sof/sof-pci-dev.c
parent8d01c3c73cefbb5bacffe804427daed3e6051435 (diff)
downloadtalos-op-linux-a69270d8bfeb35fc89d047ea6db803cd75a74f12.tar.gz
talos-op-linux-a69270d8bfeb35fc89d047ea6db803cd75a74f12.zip
ASoC: SOF: fix race in FW boot timeout handling
A race condition exists in handling firmware boot timeout. If FW sends FW_READY just after boot timeout has expired in driver, a kernel exception will result as FW_READY handler will be run while the state is still being cleaned up in snd_sof_run_firmware(). Avoid the race by setting boot_complete also in the error case. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/sof-pci-dev.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud