Skip to content

Commit 687630a

Browse files
gordostebroonie
authored andcommitted
ASoC: audio-graph-card: Call of_node_put() on correct node
Signed-off-by: Stephen Gordon <[email protected]> Acked-by: Kuninori Morimoto <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 984795e commit 687630a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/generic/audio-graph-card2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ static void graph_link_init(struct simple_util_priv *priv,
771771
of_node_get(port_codec);
772772
if (graph_lnk_is_multi(port_codec)) {
773773
ep_codec = graph_get_next_multi_ep(&port_codec);
774-
of_node_put(port_cpu);
774+
of_node_put(port_codec);
775775
port_codec = ep_to_port(ep_codec);
776776
} else {
777777
ep_codec = of_graph_get_next_port_endpoint(port_codec, NULL);

0 commit comments

Comments
 (0)