[PATCH 1/5] ASoC: rsnd: fix NULL dereference when remote port has no endpoint
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Sun Nov 8 18:02:11 PST 2026
Hi Shao
Thank you for your patch
> rsnd_parse_connect_graph() uses the node returned by
> of_graph_get_remote_port_parent() without checking it for NULL. An
> endpoint node with no remote-endpoint phandle yields NULL, and the
> following strstr() on remote_node->full_name dereferences it during
> probe.
>
> Return early when the remote node is absent, so a graph link that does
> not lead anywhere is ignored instead of crashing the kernel.
>
> Fixes: beed78aeeb10 ("ASoC: rsnd: move HDMI information from ssi.c to core.c")
> Signed-off-by: Shao Mingyin <shao.mingyin at zte.com.cn>
> ---
Basically it shouldn't happen in of-graph case, but we shouldn't believe
sane DT.
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
Thank you for your help !!
Best regards
---
Kuninori Morimoto
More information about the Linux-rockchip
mailing list