aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorKai Vehmanen <[email protected]>2020-07-17 16:13:35 -0500
committerMark Brown <[email protected]>2020-07-20 16:08:22 +0100
commit6b540ac763e9d11506ec1eb6b0fadc70292bb4a6 (patch)
tree3a3917b1598000c02343b4b11749f2b12ed985b4 /lib/mpi/mpi-internal.h
parent15ef2ea035db7bcb9a9d0bf3747fbb7dde67dd97 (diff)
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 <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Guennadi Liakhovetski <[email protected]> Reviewed-by: Rander Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions