linux-yocto/sound/soc/sof
Kees Cook 5b71469d77 ASoC: SOF: ipc4-pcm: Adjust pipeline_list->pipelines allocation type
[ Upstream commit 00a371adbb ]

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: 9c04363d22 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-19 15:28:05 +02:00
..
amd ASoC: SOF: amd: Handle IPC replies before FW_BOOT_COMPLETE 2025-03-22 12:50:43 -07:00
imx ASoC: SOF: imx8m: Fix DSP control regmap retrieval 2024-08-03 08:54:39 +02:00
intel ASoC: SOF: Intel: hda: add softdep pre to snd-hda-codec-hdmi module 2025-03-22 12:50:43 -07:00
mediatek ASoC: SOF: mediatek: Add missing board compatible 2024-09-30 16:25:07 +02:00
xtensa
compress.c
control.c
core.c
debug.c
iomem-utils.c
ipc.c
ipc3-control.c
ipc3-dtrace.c
ipc3-loader.c ASoC: SOF: Add some bounds checking to firmware data 2024-03-26 18:19:48 -04:00
ipc3-pcm.c ASoC: SOF: pcm: Restrict DSP D0i3 during S0ix to IPC3 2024-06-12 11:11:25 +02:00
ipc3-priv.h
ipc3-topology.c ASoC: SOF: ipc3-topology: fix resource leaks in sof_ipc3_widget_setup_comp_dai() 2024-12-14 19:59:49 +01:00
ipc3.c ASoC: SOF: IPC3: fix message bounds on ipc ops 2024-02-23 09:25:14 +01:00
ipc4-control.c ASoC: SOF: ipc4-control: Use SOF_CTRL_CMD_BINARY as numid for bytes_ext 2025-06-04 14:42:19 +02:00
ipc4-fw-reg.h
ipc4-loader.c ASoC: SOF: ipc4-loader: remove the CPC check warnings 2024-01-25 15:35:58 -08:00
ipc4-mtrace.c
ipc4-pcm.c ASoC: SOF: ipc4-pcm: Adjust pipeline_list->pipelines allocation type 2025-06-19 15:28:05 +02:00
ipc4-priv.h
ipc4-topology.c ASoC: SOF: ipc4-control: Add support for ALSA enum control 2024-11-08 16:28:27 +01:00
ipc4-topology.h ASoC: SOF: ipc4-topology: Add definition for generic switch/enum control 2024-11-08 16:28:27 +01:00
ipc4.c ASoC: SOF: ipc4: check return value of snd_sof_ipc_msg_data 2024-08-29 17:33:31 +02:00
Kconfig
loader.c
Makefile
nocodec.c
ops.c
ops.h
pcm.c ASoC: SOF: pcm: Clear the susbstream pointer to NULL on close 2025-02-27 04:10:52 -08:00
pm.c
sof-acpi-dev.c
sof-acpi-dev.h
sof-audio.c ASoC: SOF: sof-audio: Skip unprepare for in-use widgets on error rollback 2024-07-25 09:50:50 +02:00
sof-audio.h ASoC: SOF: pcm: Restrict DSP D0i3 during S0ix to IPC3 2024-06-12 11:11:25 +02:00
sof-client-ipc-flood-test.c
sof-client-ipc-kernel-injector.c
sof-client-ipc-msg-injector.c
sof-client-probes-ipc3.c
sof-client-probes-ipc4.c ASoC: SOF: sof-client-probes-ipc4: Set param_size extension bits 2024-11-14 13:19:34 +01:00
sof-client-probes.c
sof-client-probes.h
sof-client.c
sof-client.h
sof-of-dev.c
sof-of-dev.h
sof-pci-dev.c
sof-pci-dev.h
sof-priv.h
sof-utils.c
sof-utils.h
stream-ipc.c ASoC: SOF: stream-ipc: Check for cstream nullity in sof_ipc_msg_data() 2025-02-27 04:10:52 -08:00
topology.c ASoc: SOF: topology: connect DAI to a single DAI link 2025-06-04 14:42:19 +02:00
trace.c