ASoC: mediatek: mt8192-mt6359: fix device_node leak
authorTzung-Bi Shih <tzungbi@google.com>
Tue, 14 Dec 2021 04:00:28 +0000 (12:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:05:04 +0000 (11:05 +0100)
commit286c6f7b28fab19d649c2e1f3bc18fdecdbadfe5
treee50ea4fb776e4a4dfced7db8ee37b61609635bac
parent5b03322abb61591f9a8a10ff07340f2d9670b813
ASoC: mediatek: mt8192-mt6359: fix device_node leak

[ Upstream commit 4e28491a7a198c668437f2be8a91a76aa52f20eb ]

The of_parse_phandle() document:
    >>> Use of_node_put() on it when done.

The driver didn't call of_node_put().  Fixes the leak.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20211214040028.2992627-1-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c