]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: core: fix null-ptr-deref bug during device removal
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Tue, 7 Jul 2020 20:40:27 +0000 (15:40 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 8 Jul 2020 14:02:02 +0000 (15:02 +0100)
commitda55391eb0cc14734b8a112667ef0c9899be2d9e
treef4e73597877eaf401e6bcfe7e43739751c9e5fc1
parentc168e7591d1b41489f10fef21d9c35b46580b659
ASoC: SOF: core: fix null-ptr-deref bug during device removal

The DSP should be notified for device removal only if the
probe was successful. Fixes the following KASAN bug:
BUG: KASAN: null-ptr-deref in sof_ipc_tx_message+0x80/0x160 [snd_sof]

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200707204027.114169-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/core.c