linux_dsm_epyc7002/sound/soc
Kai Vehmanen 6b540ac763
ASoC: Intel: sof_sdw: avoid crash if invalid DSP topology loaded
The mc_private->hdmi_pcm_list is populated by elements loaded during
DSP topology load. Valid topologies for this machine driver will always
have PCM nodes for HDMI, but driver should fail gracefully even in the case
this is not true. Add a sanity check to sof_sdw_hdmi_card_late_probe()
for this case. Without the fix, a null pcm handle gets dereferenced.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@linux.intel.com>
Link: https://lore.kernel.org/r/20200717211337.31956-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-07-20 16:08:22 +01:00
..
adi
amd Merge series "ASoC: topology: fix error handling flow" from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>: 2020-07-08 16:50:36 +01:00
atmel ASoC: atmel: merge .digital_mute() into .mute_stream() 2020-07-17 14:22:55 +01:00
au1x
bcm ASoC: bcm: use snd_soc_xxx_active() 2020-05-18 16:15:05 +01:00
cirrus ASoC: cirrus: use snd_soc_xxx_active() 2020-05-18 16:15:06 +01:00
codecs ASoC: rt5682: optimize the power consumption 2020-07-17 14:47:02 +01:00
dwc ASoC: dwc: use snd_soc_xxx_active() 2020-05-18 16:15:15 +01:00
fsl Merge series "ASoC: fsl-asoc-card: Support hp and mic detection" from Shengjiu Wang <shengjiu.wang@nxp.com>: 2020-07-16 23:51:52 +01:00
generic ASoC: simple-card-utils: Support configure pin_name for asoc_simple_init_jack 2020-07-16 23:24:12 +01:00
hisilicon
img ASoC: img-parallel-out: Fix a reference count leak 2020-06-15 20:58:35 +01:00
intel ASoC: Intel: sof_sdw: avoid crash if invalid DSP topology loaded 2020-07-20 16:08:22 +01:00
jz4740 ASoC: ingenic: Unconditionally depend on devicetree 2020-05-28 13:20:17 +01:00
kirkwood
mediatek ASoC: mediatek: mt8183-da7219: support HDMI jack reporting 2020-07-10 15:57:55 +01:00
meson ASoC: meson: merge .digital_mute() into .mute_stream() 2020-07-16 23:06:09 +01:00
mxs ASoC: mxs-saif: Fix unused assignment 2020-04-29 14:23:19 +01:00
pxa ASoC: pxa: pxa-ssp: Demote seemingly unintentional kerneldoc header 2020-07-10 15:13:48 +01:00
qcom ASoC: qcom: qdsp6: Use IS_ERR() instead of IS_ERR_OR_NULL() 2020-07-17 14:47:00 +01:00
rockchip ASoC: rockchip: spdif: Handle clk by pm runtime 2020-07-13 17:53:46 +01:00
samsung ASoC: samsung: pcm: fix kernel-doc 2020-07-09 21:56:41 +01:00
sh ASoC: ssi: don't use discriminatory terms for debug log 2020-07-14 16:38:24 +01:00
sirf
sof ASoC: SOF: sof-acpi-dev: fix 'defined but unused' warning 2020-07-01 21:14:23 +01:00
spear ASoC: spear: merge .digital_mute() into .mute_stream() 2020-07-16 23:06:08 +01:00
sprd
sti ASoC: sti: uniperif: fix 'defined by not used' warning 2020-07-10 15:13:44 +01:00
stm
sunxi ASoC: sunxi: sun4i-spdif: Fix misspelling of 'reg_dac_txdata' in kernel-doc 2020-07-10 15:13:47 +01:00
tegra ASoC: tegra: tegra20_das: remove always-true comparison 2020-07-09 21:56:42 +01:00
ti ASoC: ti: merge .digital_mute() into .mute_stream() 2020-07-16 23:06:07 +01:00
txx9
uniphier ASoC: uniphier: aio-core: fix kernel-doc 2020-07-09 21:56:43 +01:00
ux500 ASoC: ux500: ux500_msp_i2s: Remove unused variables 'reg_val_DR' and 'reg_val_TSTDR' 2020-07-10 15:13:48 +01:00
xilinx
xtensa
zte
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile ASoC: soc-component: merge soc-io.c into soc-component.c 2020-06-15 18:21:26 +01:00
soc-ac97.c ASoC: soc-ac97: fix kernel-doc 2020-07-03 17:33:46 +01:00
soc-acpi.c
soc-card.c ASoC: soc-card: add snd_soc_card_remove_dai_link() 2020-05-30 02:11:42 +01:00
soc-component.c ASoC: soc-component: Add missed return for calling soc_component_ret 2020-07-16 23:51:47 +01:00
soc-compress.c ASoC: soc-pcm/compress: reduce verbosity on mapping ok messages 2020-06-15 17:12:11 +01:00
soc-core.c ASoC: soc-core: snd_soc_dai_digital_mute() for both CPU/Codec 2020-07-17 14:22:56 +01:00
soc-dai.c ASoC: soc-dai.c: add .no_capture_mute support 2020-07-16 23:06:05 +01:00
soc-dapm.c ASoC: soc-component: merge snd_soc_component_read() and snd_soc_component_read32() 2020-06-22 15:13:36 +01:00
soc-devres.c ASoC: core: Remove only the registered component in devm functions 2020-07-07 11:55:46 +01:00
soc-generic-dmaengine-pcm.c ASoC: core: Remove only the registered component in devm functions 2020-07-07 11:55:46 +01:00
soc-jack.c ASoC: soc-card: move snd_soc_card_jack_new() to soc-card 2020-05-30 02:11:28 +01:00
soc-link.c ASoC: soc-link: introduce exit() callback 2020-06-23 12:25:37 +01:00
soc-ops.c ASoC: soc-component: merge snd_soc_component_read() and snd_soc_component_read32() 2020-06-22 15:13:36 +01:00
soc-pcm.c snd/soc: correct trivial kernel-doc inconsistency 2020-06-26 14:43:47 +01:00
soc-topology.c ASoC: topology: add more logs when topology load fails. 2020-07-08 14:25:22 +01:00
soc-utils.c asoc: Update supported rate and format for dummy dai 2020-06-29 18:48:51 +01:00