2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-08 05:34:29 +08:00
linux-next/sound/soc/mediatek/mt8192
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
..
Makefile ASoC: mediatek: mt8192: add machine driver with mt6359, rt1015 and rt5682 2020-11-04 17:51:52 +00:00
mt8192-afe-clk.c
mt8192-afe-clk.h
mt8192-afe-common.h
mt8192-afe-control.c
mt8192-afe-gpio.c ASoC: mediatek: mt8192: Make some symbols static 2020-11-05 14:52:32 +00:00
mt8192-afe-gpio.h
mt8192-afe-pcm.c ASoC: mediatek: remove unnecessary CONFIG_PM 2021-11-25 11:54:28 +00:00
mt8192-dai-adda.c ASoC: mediatek: mt8192: Delete a redundant condition branch 2021-05-10 13:05:33 +01:00
mt8192-dai-i2s.c ASoC: mediatek: mt8192: Make some symbols static 2020-11-05 14:52:32 +00:00
mt8192-dai-pcm.c ASoC: mediatek: sync parameter naming (rate/sample_bits) 2021-01-21 12:37:55 +00:00
mt8192-dai-tdm.c ASoC: mediatek: mt8192: fix tdm out data is valid on rising edge 2021-03-12 14:25:32 +00:00
mt8192-interconnection.h
mt8192-mt6359-rt1015-rt5682.c ASoC: mediatek: mt8192-mt6359: Fix error handling in mt8192_mt6359_dev_probe 2022-03-08 12:27:59 +00:00
mt8192-reg.h ASoC: mediatek: mt8192: fix tdm out data is valid on rising edge 2021-03-12 14:25:32 +00:00