]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Tue, 14 Jun 2022 14:59:19 +0000 (16:59 +0200)
commit9345122f5fb9f97a206f440f38bb656e53f46912
tree77facb2af8c5b3ee9abc4c924c280721af544344
parentcc43b9fdca519c5b13be6a717bacbebccd628cf6
ASoC: mediatek: Fix missing of_node_put in mt2701_wm8960_machine_probe

[ Upstream commit 05654431a18fe24e5e46a375d98904134628a102 ]

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: 8625c1dbd876 ("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