diff options
author | Kees Cook <kees@kernel.org> | 2025-04-26 09:25:12 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-04-30 03:38:23 +0300 |
commit | 00a371adbbfb46db561db85a9d7b53b2363880a1 (patch) | |
tree | bb8447178ebc1e0c3512c7591cebeb72b9cee3c1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 114a6e63d9cc11311587773d5db4cf4105cf658f (diff) | |
download | linux-00a371adbbfb46db561db85a9d7b53b2363880a1.tar.xz |
ASoC: SOF: ipc4-pcm: Adjust pipeline_list->pipelines allocation type
In preparation for making the kmalloc family of allocators type aware,
we need to make sure that the returned type from the allocation matches
the type of the variable being assigned. (Before, the allocator would
always return "void *", which can be implicitly cast to any pointer type.)
The assigned type is "struct snd_sof_pipeline **", but the returned type
will be "struct snd_sof_widget **". These are the same size allocation
(pointer size) but the types don't match. Adjust the allocation type to
match the assignment.
Signed-off-by: Kees Cook <kees@kernel.org>
Fixes: 9c04363d222b ("ASoC: SOF: Introduce struct snd_sof_pipeline")
Acked-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20250426062511.work.859-kees@kernel.org
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