alistair23-linux/sound
Pierre-Louis Bossart 32a369776b ASoC: SOF: Intel: hda: hda-dai: fix oops on hda_link .hw_free
[ Upstream commit 921162c81a ]

When the PCM_PARAM IPC fails while configuring the FE, the kernel
oopses in the HDaudio link DMA .hw_free operation. The root cause is a
NULL dma_data since the BE .hw_params was never called by the SOC
core.

This error can also happen if the HDaudio link DMA configuration IPC
fails in the BE .hw_params.

This patches makes sure the dma_data is properly saved in .hw_params,
and tested before being use in hw_free.

GitHub issue: https://github.com/thesofproject/linux/issues/1417

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-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-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-01 09:34:42 +00:00
..
ac97
aoa
arm
atmel
core ALSA: seq: Fix racy access for queue timer in proc read 2020-01-23 08:22:31 +01:00
drivers
firewire ALSA: firewire-tascam: fix corruption due to spin lock without restoration in SoftIRQ context 2020-01-23 08:22:31 +01:00
hda ALSA: hda: Fix regression by strip mask fix 2019-12-21 11:05:23 +01:00
i2c
isa ALSA: cs4236: fix error return comparison of an unsigned integer 2020-01-09 10:20:00 +01:00
mips
oss
parisc
pci ALSA: hda/realtek - Add quirk for the bass speaker on Lenovo Yoga X1 7th gen 2020-01-14 20:08:20 +01:00
pcmcia
ppc
sh
soc ASoC: SOF: Intel: hda: hda-dai: fix oops on hda_link .hw_free 2020-02-01 09:34:42 +00:00
sparc
spi
synth
usb ALSA: usb-audio: fix sync-ep altsetting sanity check 2020-01-23 08:22:31 +01:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c