linux_dsm_epyc7002/sound/soc/sof
Kai Vehmanen b06e46427f
ASoC: SOF: fix fault at driver unload after failed probe
If sof_machine_check() fails during driver probe, the IPC
state is not initialized and this will lead to a NULL
dereference at driver unload. Example log is as follows:

[ 1535.980630] sof-audio-pci 0000:00:1f.3: error: no matching ASoC machine driver found - aborting probe
[ 1535.980631] sof-audio-pci 0000:00:1f.3: error: failed to get machine info -19
[ 1535.980632] sof-audio-pci 0000:00:1f.3: error: sof_probe_work failed err: -19
[ 1550.798373] BUG: kernel NULL pointer dereference, address: 0000000000000008
...
[ 1550.798393] Call Trace:
[ 1550.798397]  snd_sof_ipc_free+0x15/0x30 [snd_sof]
[ 1550.798399]  snd_sof_device_remove+0x29/0xa0 [snd_sof]
[ 1550.798400]  sof_pci_remove+0x10/0x30 [snd_sof_pci]

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191218000518.5830-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-12-18 19:49:22 +00:00
..
imx
intel ASoC: SOF: Intel: split cht and byt debug window sizes 2019-12-10 13:11:38 +00:00
xtensa
control.c
core.c ASoC: SOF: add helper to check if we should enter d0i3 suspend 2019-11-12 12:10:40 +00:00
debug.c
ipc.c ASoC: SOF: fix fault at driver unload after failed probe 2019-12-18 19:49:22 +00:00
Kconfig
loader.c ASoC: SOF: loader: fix snd_sof_fw_parse_ext_data 2019-12-10 13:11:19 +00:00
Makefile
nocodec.c
ops.c
ops.h
pcm.c
pm.c ASoC: SOF: PM: only suspend to D0I3 when needed 2019-11-12 12:10:59 +00:00
sof-acpi-dev.c
sof-of-dev.c
sof-pci-dev.c ASoC: SOF: Intel: Fix CFL and CML FW nocodec binary names. 2019-11-18 16:07:25 +00:00
sof-priv.h ASoC: SOF: add helper to check if we should enter d0i3 suspend 2019-11-12 12:10:40 +00:00
topology.c ASoC: SOF: topology: Fix unload for SAI/ESAI 2019-11-27 12:50:37 +00:00
trace.c
utils.c