linux-stable/sound/soc/samsung
Miaoqian Lin 3e2649c5e8
ASoC: samsung: Fix error handling in aries_audio_probe
of_get_child_by_name() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
This function is missing of_node_put(cpu) in the error path.
Fix this by goto out label. of_node_put() will check NULL pointer.

Fixes: 7a3a7671fa ("ASoC: samsung: Add driver for Aries boards")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220603130640.37624-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-06-06 12:38:27 +01:00
..
aries_wm8994.c ASoC: samsung: Fix error handling in aries_audio_probe 2022-06-06 12:38:27 +01:00
arndale.c ASoC: samsung: Use dev_err_probe() helper 2021-12-20 12:47:22 +00:00
bells.c ASoC: samsung: Constify snd_soc_dapm_{route,widget} structs 2022-04-05 10:23:14 +01:00
dma.h
dmaengine.c
h1940_uda1380.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
i2s-regs.h
i2s.c ASoC: samsung: i2s: check the return value of kstrdup() 2022-03-16 16:39:17 +00:00
i2s.h
idma.c ASoC: samsung: remove unneeded ret variable 2022-01-24 13:31:56 +00:00
idma.h
jive_wm8750.c
Kconfig
littlemill.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
lowland.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
Makefile
midas_wm1811.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
neo1973_wm8753.c
odroid.c ASoC: samsung: Use dev_err_probe() helper 2021-12-20 12:47:22 +00:00
pcm.c
pcm.h
regs-i2s-v2.h
regs-iis.h
rx1950_uda1380.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
s3c-i2s-v2.c
s3c-i2s-v2.h
s3c24xx-i2s.c
s3c24xx-i2s.h
s3c24xx_simtec.c
s3c24xx_simtec.h
s3c24xx_simtec_hermes.c
s3c24xx_simtec_tlv320aic23.c
s3c24xx_uda134x.c
s3c2412-i2s.c
s3c2412-i2s.h
smartq_wm8987.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
smdk_spdif.c
smdk_wm8580.c
smdk_wm8994.c ASoC: samsung: Use dev_err_probe() helper 2021-12-20 12:47:22 +00:00
smdk_wm8994pcm.c ASoC: samsung: Use dev_err_probe() helper 2021-12-20 12:47:22 +00:00
snow.c ASoC: samsung: Use dev_err_probe() helper 2021-12-20 12:47:22 +00:00
spdif.c ASoC: samsung: spdif: remove unnecessary check of mem_res 2022-05-10 14:01:53 +01:00
spdif.h
speyside.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
tm2_wm5110.c ASoC: samsung: Use dev_err_probe() helper 2021-12-20 12:47:22 +00:00
tobermory.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00