linux-sg2042/sound/soc/mediatek
Miaoqian Lin c4b7174fe5
ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_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 path.

Fixes: 082482a502 ("ASoC: mediatek: mt8195: release device_node after snd_soc_register_card")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220316084623.24238-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-03-16 16:39:25 +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: Fix error handling in mt8183_da7219_max98357_dev_probe 2022-03-16 16:39:20 +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: Fix error handling in mt8195_mt6359_rt1019_rt5682_dev_probe 2022-03-16 16:39:25 +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