]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mediatek: mt8173-rt5650: Fix refcount leak in mt8173_rt5650_dev_probe
authorMiaoqian Lin <linmq006@gmail.com>
Fri, 3 Jun 2022 12:42:41 +0000 (16:42 +0400)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jun 2022 11:00:44 +0000 (12:00 +0100)
commitd68263963515420f78221a7594ba84da446d91c5
treeff2cc188425d73cd6cd7ab47f66411a91fad38c1
parent8ac2915eeba9479ff5c2c4f66c7bc40e100b7073
ASoC: mediatek: mt8173-rt5650: Fix refcount leak in mt8173_rt5650_dev_probe

of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
Fix refcount leak in some error paths.

Fixes: 9c3f6c50c65c ("ASoC: mediatek: Add machine driver for ALC5650 codec")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220603124243.31358-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8173/mt8173-rt5650.c