diff options
author | Julien Massot <julien.massot@collabora.com> | 2025-04-29 12:19:22 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-04-30 03:38:23 +0300 |
commit | 114a6e63d9cc11311587773d5db4cf4105cf658f (patch) | |
tree | 8d596534531561baf53ecdf04e49892bee3843ef /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 85f380f2b9ab6e9a8753626fa3d8a3f4a323043a (diff) | |
download | linux-114a6e63d9cc11311587773d5db4cf4105cf658f.tar.xz |
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: 6d5997c412cc ("ASoC: SOF: topology: load multiple topologies")
Reviewed-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Julien Massot <julien.massot@collabora.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://patch.msgid.link/20250429-fixup-of-sof-topology-v4-1-ff692244d64c@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions