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

ASoC: mt6359: Fix refcount leak bug

In mt6359_parse_dt() and mt6359_accdet_parse_dt(), we should call
of_node_put() for the reference returned by of_get_child_by_name()
which has increased the refcount.

Fixes: 68353028 ("ASoC: mt6359: fix failed to parse DT properties")
Fixes: eef07b9e

 ("ASoC: mediatek: mt6359: add MT6359 accdet jack driver")
Signed-off-by: default avatarLiang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220713102013.367336-1-windhl@126.com
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1795c16a
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