linux/sound/soc/generic
Alexander Stein b41a49d543 ASoC: simple-card-utils: Fix pointer check in graph_util_parse_link_direction
[ Upstream commit 3cc393d223 ]

Actually check if the passed pointers are valid, before writing to them.
This also fixes a USBAN warning:
UBSAN: invalid-load in ../sound/soc/fsl/imx-card.c:687:25
load of value 255 is not a valid value for type '_Bool'

This is because playback_only is uninitialized and is not written to, as
the playback-only property is absent.

Fixes: 844de7eebe ("ASoC: audio-graph-card2: expand dai_link property part")
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://patch.msgid.link/20250429094910.1150970-1-alexander.stein@ew.tq-group.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-05-09 09:50:46 +02:00
..
audio-graph-card.c ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
audio-graph-card2-custom-sample.c ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
audio-graph-card2-custom-sample.dtsi ASoC: audio-graph-card2-custom-sample: add CPU/Codec = N:M sample 2023-11-27 13:44:03 +00:00
audio-graph-card2.c ASoC: audio-graph-card: Call of_node_put() on correct node 2025-01-09 13:33:45 +01:00
Kconfig ASoC: add Audio Graph Card2 Custom Sample 2021-10-15 16:10:43 +01:00
Makefile ASoC: generic: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:19 +09:00
simple-card-utils.c ASoC: simple-card-utils: Fix pointer check in graph_util_parse_link_direction 2025-05-09 09:50:46 +02:00
simple-card.c ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
test-component.c ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00