Commit 5b71469d authored by Kees Cook's avatar Kees Cook Committed by Greg Kroah-Hartman
Browse files

ASoC: SOF: ipc4-pcm: Adjust pipeline_list->pipelines allocation type



[ Upstream commit 00a371ad ]

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: default avatarKees Cook <kees@kernel.org>
Fixes: 9c04363d ("ASoC: SOF: Introduce struct snd_sof_pipeline")
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20250426062511.work.859-kees@kernel.org


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