]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mt6359: Fix refcount leak bug
authorLiang He <windhl@126.com>
Wed, 13 Jul 2022 10:20:13 +0000 (18:20 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 13 Jul 2022 12:48:56 +0000 (13:48 +0100)
commit6db110e2481ad895952a847009da5019f83a6a8d
treef3ba58e166ea339757410d25ad0618424007f6e1
parent47c0fa41ca8ca22ced0f7e6cb41be0bc09ebba61
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: 71dacf229d3c ("ASoC: mt6359: fix failed to parse DT properties")
Fixes: c3e6499cdd26 ("ASoC: mediatek: mt6359: add MT6359 accdet jack driver")
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220713102013.367336-1-windhl@126.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/mt6359-accdet.c
sound/soc/codecs/mt6359.c