linux-stable/sound/soc/mediatek/mt8195
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
..
Makefile ASoC: mediatek: mt8195: add machine driver with mt6359, rt1011 and rt5682 2021-10-29 16:49:47 +01:00
mt8195-afe-clk.c ASoC: mediatek: mt8195: enable apll tuner 2022-02-21 13:24:56 +00:00
mt8195-afe-clk.h ASoC: mediatek: mt8195: enable apll tuner 2022-02-21 13:24:56 +00:00
mt8195-afe-common.h ASoC: mediatek: mt8195: add platform driver 2021-08-24 19:13:56 +01:00
mt8195-afe-pcm.c ASoC: mediatek: mt8195: add reset controller 2022-03-11 13:41:12 +00:00
mt8195-audsys-clk.c ASoC: mediatek: mt8195: update audsys clock parent name 2021-10-08 17:22:50 +01:00
mt8195-audsys-clk.h
mt8195-audsys-clkid.h
mt8195-dai-adda.c ASoC: mediatek: mt8195: make array adda_dai_list static const 2021-09-15 13:12:27 +01:00
mt8195-dai-etdm.c ASoC: mediatek: mt8195: fix return value 2021-10-27 11:31:15 +01:00
mt8195-dai-pcm.c ASoC: mediatek: mt8195: correct pcmif BE dai control flow 2021-12-31 13:20:57 +00:00
mt8195-mt6359-rt1011-rt5682.c ASoC: mediatek: mt8195: add playback support to PCM1_BE dai_link 2021-12-31 13:20:58 +00:00
mt8195-mt6359-rt1019-rt5682.c ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_dev_probe 2022-03-16 16:39:25 +00:00
mt8195-reg.h ASoC: mediatek: mt8195: correct pcmif BE dai control flow 2021-12-31 13:20:57 +00:00