]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: loader: fix kernel oops on firmware boot failure
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 27 Sep 2019 20:05:26 +0000 (15:05 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 1 Oct 2019 17:30:28 +0000 (18:30 +0100)
commit3c9b9ef8bbb2237289e06d19987d895305f07f8d
tree83f76b1596946075fa7bee8431c65c21f51377fa
parentca5f950f973cb9c37bc8dee821734af2bd3f706e
ASoC: SOF: loader: fix kernel oops on firmware boot failure

When we fail to boot the firmware, we encounter a kernel oops in
hda_dsp_get_registers(), which is called conditionally in
hda_dsp_dump() when the sdev_>boot_complete flag is set.

Setting this flag _after_ dumping the data fixes the issue and does
not change the programming flow.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190927200538.660-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/loader.c