linux-uconsole/sound/soc/sof/intel
Cezary Rojewski 16dcefc23e
ASoC: SOF: Intel: Fix stream cleanup on hw free
Field "substream" gets assigned during stream setup in
hda_dsp_pcm_hw_params() but it is never cleared afterwards during
cleanup procedure. Now, any non-pcm operation e.g.: compress can
mistakenly make use of that pointer as it's bypassing all
"if (s->substream)" checks.

Nulling the pointer during hw_free operation ensures no wild pointers
are left behind.

Fixes: cdae3b9a47aa ("ASoC: SOF: Intel: Add Intel specific HDA PCM operations")
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200312120058.15057-1-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-03-12 13:12:35 +00:00
..
apl.c ASoC: SOF: move arch_ops under ops 2019-12-18 20:02:02 +00:00
bdw.c ASoC: SOF: Intel: add namespace for XTENSA 2019-12-18 20:02:21 +00:00
byt.c ASoC: SOF: Intel: add namespace for XTENSA 2019-12-18 20:02:21 +00:00
cnl.c ASoC: SOF: move arch_ops under ops 2019-12-18 20:02:02 +00:00
hda-bus.c ASoC: SOF: Intel: Add missing include file hdac_hda.h 2019-08-09 13:24:20 +01:00
hda-codec.c ASoC: SOF: Intel: hda: fix ordering bug in resume flow 2020-02-10 14:06:04 +00:00
hda-ctrl.c ASoC: SOF: Intel: add codec_mask module parameter 2019-12-10 13:13:38 +00:00
hda-dai.c ASoC: SOF: Intel: hda-dai: fix compilation warning in pcm_prepare 2020-01-14 15:26:59 +00:00
hda-dsp.c ASoC: SOF: Intel: hda: fix ordering bug in resume flow 2020-02-10 14:06:04 +00:00
hda-ipc.c ASoC: SOF: Intel: hda: solve MSI issues by merging ipc and stream irq handlers 2019-12-09 18:35:56 +00:00
hda-ipc.h ASoC: SOF: Intel: HDA: add cAVS specific compact IPC header file 2019-10-28 14:43:58 +00:00
hda-loader.c ASoC: Fixes for v5.5 2020-01-17 15:38:56 +00:00
hda-pcm.c ASoC: SOF: partition audio-related parts from SOF core 2019-12-09 18:38:57 +00:00
hda-stream.c ASoC: SOF: Intel: Fix stream cleanup on hw free 2020-03-12 13:12:35 +00:00
hda-trace.c ASoC: SOF: Intel: Add Intel specific HDA trace operations 2019-04-28 02:51:23 +09:00
hda.c ASoC: SOF: Intel: hda: move i915 init earlier 2020-02-10 14:06:12 +00:00
hda.h ASoC: SOF: Intel: refactor i915_get/put functions 2020-01-27 17:51:27 +00:00
intel-ipc.c ASoC: SOF: Intel: add module namespace for legacy IPC 2019-12-18 19:50:53 +00:00
Kconfig ASoC: SOF: Intel: make common HDMI driver default 2019-12-09 18:32:40 +00:00
Makefile ASoC: SOF: Add Build support for SOF core and Intel drivers 2019-04-28 02:51:46 +09:00
shim.h ASoC: SOF: remove references to Haswell 2019-12-18 19:51:40 +00:00