linux/sound/soc/mediatek
Miaoqian Lin e45ac7831f
ASoC: mediatek: mt8192-mt6359: Fix error handling in mt8192_mt6359_dev_probe
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>
2022-03-08 12:27:59 +00:00
..
common ASoC: mediatek: remove unnecessary initialization 2021-10-27 11:31:12 +01:00
mt2701 ASoC: mediatek: remove unnecessary CONFIG_PM 2021-11-25 11:54:28 +00:00
mt6797 ASoC: mediatek: remove unnecessary CONFIG_PM 2021-11-25 11:54:28 +00:00
mt8173 ASoC: mediatek: mt8173: reduce log verbosity in probe() 2021-12-24 14:06:55 +00:00
mt8183 ASoC: mediatek: mt8183: support wb bt audio 2022-03-08 12:27:53 +00:00
mt8192 ASoC: mediatek: mt8192-mt6359: Fix error handling in mt8192_mt6359_dev_probe 2022-03-08 12:27:59 +00:00
mt8195 ASoC: mediatek: mt8195: Remove unnecessary print function dev_err() 2022-02-28 13:33:55 +00:00
Kconfig ASoC: mediatek: fix unmet dependency on GPIOLIB for SND_SOC_DMIC 2022-01-19 16:47:37 +00:00
Makefile ASoC: mediatek: mt8195: add platform driver 2021-08-24 19:13:56 +01:00