1
0
Fork 0
alistair23-linux/sound/soc/sof
Jaska Uimonen 657e50f8cd ASoC: SOF: ipc: check ipc return value before data copy
[ Upstream commit 1919b42ca4 ]

In tx_wait_done the ipc payload is copied before the DSP transaction
error code is checked. This might lead to corrupted data in kernel side
even though the error would be handled later. It is also pointless to
copy the data in case of error. So change the order of error check and
copy.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
Link: https://lore.kernel.org/r/20200228231850.9226-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:17:37 +02:00
..
imx ASoC: SOF: imx8: Fix randbuild error 2020-06-24 17:50:08 +02:00
intel ASoC: SOF: Intel: hda: Add iDisp4 DAI 2020-02-28 17:22:29 +01:00
xtensa sound fixes for 5.2-rc5 2019-06-14 05:37:06 -10:00
Kconfig ASoC: SOF: imx: Add i.MX8 HW support 2019-08-22 18:28:32 +01:00
Makefile ASoC: SOF: imx: Add i.MX8 HW support 2019-08-22 18:28:32 +01:00
control.c ASoC: SOF: control: return true when kcontrol values change 2019-10-18 18:09:22 +01:00
core.c ASoC: SOF: core: fix error return code in sof_probe_continue() 2020-06-24 17:50:25 +02:00
debug.c ASoC: SOF: Fix memory leak in sof_dfsentry_write 2019-10-28 13:10:23 +00:00
ipc.c ASoC: SOF: ipc: check ipc return value before data copy 2020-10-01 13:17:37 +02:00
loader.c ASoC: SOF: Introduce state machine for FW boot 2020-02-11 04:35:27 -08:00
nocodec.c ASoC: SOF: nocodec: add missing .owner field 2020-08-19 08:16:08 +02:00
ops.c ASoC: SOF: Fix a compile warning with CONFIG_PCI=n 2019-05-07 11:23:57 +09:00
ops.h ASoC: SOF: Introduce snd_sof_dsp_get_window_offset 2019-08-09 13:26:02 +01:00
pcm.c ASoC: SOF: pcm: harden PCM STOP sequence 2019-10-01 18:31:25 +01:00
pm.c ASoC: SOF: Do nothing when DSP PM callbacks are not set 2020-06-24 17:50:14 +02:00
sof-acpi-dev.c ASoC: SOF: add runtime idle callback 2019-07-06 12:23:24 +01:00
sof-of-dev.c ASoC: SOF: Add OF DSP device support 2019-08-22 18:28:20 +01:00
sof-pci-dev.c ASoC: SOF: Intel: add PCI ID for CometLake-S 2020-07-16 08:16:33 +02:00
sof-priv.h ASoC: SOF: Introduce state machine for FW boot 2020-02-11 04:35:27 -08:00
topology.c ASoC: SOF: topology: set trigger order for FE DAI link 2019-12-31 16:44:44 +01:00
trace.c ASoC: SOF: trace: fix unconditional free in trace release 2020-04-29 16:33:05 +02:00
utils.c ASoC: SOF: Add utils 2019-04-28 02:49:47 +09:00