Skip to content
Unverified Commit eda26893 authored by Liang He's avatar Liang He Committed by Mark Brown
Browse files

ASoc: audio-graph-card2: Fix refcount leak bug in __graph_get_type()

We should call of_node_put() for the reference before its replacement
as it returned by of_get_parent() which has increased the refcount.
Besides, we should also call of_node_put() before return.

Fixes: c8c74939

 ("ASoC: audio-graph-card2: add Multi CPU/Codec support")
Signed-off-by: default avatarLiang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220713071200.366729-1-windhl@126.com
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 73acfba7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment