linux/sound/soc/intel
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
..
atom ASoC: Intel: atom: fix 'defined but not used' warning 2020-07-01 20:58:30 +01:00
baytrail ASoC: Intel: baytrail: Fix register access 2020-05-12 14:20:29 +01:00
boards ASoC: Intel: sof_sdw: avoid crash if invalid DSP topology loaded 2020-07-20 16:08:22 +01:00
common ASoC: Intel: bxt-da7219-max98357a: support MAX98390 speaker amp 2020-07-01 19:28:28 +01:00
haswell mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
keembay ASoC: Intel: KeemBay: Fix header guard 2020-07-01 17:21:04 +01:00
skylake ASoC: Intel: Skylake: Replace zero-length array with flexible-array 2020-05-12 17:14:33 +01:00
Kconfig ASoC: Intel: Add makefiles and kconfig changes for KeemBay 2020-06-15 19:45:35 +01:00
Makefile ASoC: Intel: Add makefiles and kconfig changes for KeemBay 2020-06-15 19:45:35 +01:00