ASoC: mxs-saif: Fix refcount leak in mxs_saif_probe
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 11 May 2022 13:37:22 +0000 (17:37 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 14:53:49 +0000 (16:53 +0200)
commitd42601e93fce7802bb8d70dd59b60cfeefa20469
treeda06d1e99f9e40f5017bd794a23692b6c7754f0b
parentabd16c67ea6e593d697311ac61e24b716889a75d
ASoC: mxs-saif: Fix refcount leak in mxs_saif_probe

[ Upstream commit 2be84f73785fa9ed6443e3c5b158730266f1c2ee ]

of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when done.

Fixes: 08641c7c74dd ("ASoC: mxs: add device tree support for mxs-saif")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220511133725.39039-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/mxs/mxs-saif.c