OpenCloudOS-Kernel/sound/soc/mediatek/mt8183
Miaoqian Lin 28a265a1ee
ASoC: mediatek: Fix error handling in mt8183_da7219_max98357_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.

Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220316014059.19292-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-03-16 16:39:20 +00:00
..
Makefile ASoC: Mediatek: MT8183: Add machine driver with DA7219 2019-04-01 15:04:46 +07:00
mt8183-afe-clk.c ASoC: mediatek: mt8183: delete some unreachable code 2020-12-11 13:23:02 +00:00
mt8183-afe-clk.h
mt8183-afe-common.h
mt8183-afe-pcm.c ASoC: mediatek: remove unnecessary CONFIG_PM 2021-11-25 11:54:28 +00:00
mt8183-da7219-max98357.c ASoC: mediatek: Fix error handling in mt8183_da7219_max98357_dev_probe 2022-03-16 16:39:20 +00:00
mt8183-dai-adda.c ASoC: Mediatek: MT8183: Fix fall-through warning for Clang 2021-07-13 14:58:18 -05:00
mt8183-dai-hostless.c
mt8183-dai-i2s.c ASoC: mediatek: mt8183: support left justified format for I2S 2020-07-22 14:02:00 +01:00
mt8183-dai-pcm.c ASoC: mediatek: sync parameter naming (rate/sample_bits) 2021-01-21 12:37:55 +00:00
mt8183-dai-tdm.c ASoC: mediatek: mt8183: fix tdm out data is valid on rising edge 2019-08-28 11:50:33 +01:00
mt8183-interconnection.h
mt8183-mt6358-ts3a227-max98357.c ASoC: mediatek: mt8183: support wb bt audio 2022-03-08 12:27:53 +00:00
mt8183-reg.h ASoC: mediatek: mt8183: fix tdm out data is valid on rising edge 2019-08-28 11:50:33 +01:00