]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mediatek: Fix missing of_node_put in mt2701_wm8960_machine_probe
authorMiaoqian Lin <linmq006@gmail.com>
Mon, 4 Apr 2022 09:35:25 +0000 (09:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:45 +0000 (10:22 +0200)
commiteec5bdb98e6080f3eae60135d6ff3670c12f8704
tree6852d6ce98e1762f9ccd4a93f1281c1e7391270e
parentc0c316ea0f76be0e1177fb4a7e7cafe42e532b98
ASoC: mediatek: Fix missing of_node_put in mt2701_wm8960_machine_probe

[ Upstream commit 7ae614851a39ba62da1edeada585c5f26dbe7452 ]

This node pointer is returned by of_parse_phandle() with
refcount incremented in this function.
Calling of_node_put() to avoid the refcount leak.

Fixes: f52a364d826a ("ASoC: mediatek: Add mt2701-wm8960 machine driver")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220404093526.30004-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/mediatek/mt2701/mt2701-wm8960.c