ASoC: mediatek: mt8195: Add missing of_node_put()
authorBixuan Cui <cuibixuan@huawei.com>
Sat, 11 Sep 2021 08:12:46 +0000 (16:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 08:48:24 +0000 (09:48 +0100)
commit867cfea6ae5589a553712f4d7b34427e343c5fbb
tree846978735a757cf47ea5eaff03667b343cc251d7
parent814d3610c4ce86e8cf285b2cdac0057a42e82de5
ASoC: mediatek: mt8195: Add missing of_node_put()

[ Upstream commit b2fc2c92d2fd34d93268f677e514936f50dd6b5c ]

The platform_node is returned by of_parse_phandle() should have
of_node_put() before return.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
Link: https://lore.kernel.org/r/20210911081246.33867-1-cuibixuan@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.c