Unverified Commit 114a6e63 authored by Julien Massot's avatar Julien Massot Committed by Mark Brown
Browse files

ASoC: SOF: topology: Fix null pointer dereference



The "get_function_tplg_files" function is only applicable to
ACPI-based devices (sof_pdata->machine and not sof_pdata->of_machine).
Skip this check for OF-based devices to avoid a NULL pointer
dereference in snd_sof_load_topology().

Fixes: 6d5997c4 ("ASoC: SOF: topology: load multiple topologies")
Reviewed-by: default avatarLaurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Reviewed-by: default avatarCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: default avatarJulien Massot <julien.massot@collabora.com>
Reviewed-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
Link: https://patch.msgid.link/20250429-fixup-of-sof-topology-v4-1-ff692244d64c@collabora.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 85f380f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment