Re: [PATCH 1/5] ASoC: rsnd: fix NULL dereference when remote port has no endpoint

From: Kuninori Morimoto

Date: Sun Nov 08 2026 - 21:03:09 EST



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@xxxxxxxxxx>
> ---

Basically it shouldn't happen in of-graph case, but we shouldn't believe
sane DT.

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>

Thank you for your help !!

Best regards
---
Kuninori Morimoto