linux-stable/sound/soc/mediatek
Miaoqian Lin 87e04a89c3 ASoC: mediatek: mt8192-mt6359: Fix error handling in mt8192_mt6359_dev_probe
[ Upstream commit e45ac7831f ]

The device_node pointer is returned by of_parse_phandle()  with refcount
incremented. We should use of_node_put() on it when done.

This function only calls of_node_put() in the regular path.
And it will cause refcount leak in error paths.
Fix this by calling of_node_put() in error handling too.

Fixes: 4e28491a7a ("ASoC: mediatek: mt8192-mt6359: fix device_node leak")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220308015224.23585-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:21 +02:00
..
common ASoC: mediatek: common: handle NULL case in suspend/resume function 2021-09-10 15:08:26 +01:00
mt2701 ASoC: mediatek: mt2701: rename shadowed array 2021-03-12 14:29:53 +00:00
mt6797 ASoC: mediatek: sync parameter naming (rate/sample_bits) 2021-01-21 12:37:55 +00:00
mt8173 ASoC: mediatek: mt8173: fix device_node leak 2022-01-27 11:05:04 +01:00
mt8183 ASoC: mediatek: use of_device_get_match_data() 2022-04-08 14:23:21 +02:00
mt8192 ASoC: mediatek: mt8192-mt6359: Fix error handling in mt8192_mt6359_dev_probe 2022-04-08 14:23:21 +02:00
mt8195 ASoC: mediatek: mt8195: correct pcmif BE dai control flow 2022-01-27 11:04:17 +01:00
Kconfig ASoC: mediatek: add required config dependency 2021-09-09 14:16:25 +01:00
Makefile ASoC: mediatek: mt8195: add platform driver 2021-08-24 19:13:56 +01:00