linux-stable/sound/soc/samsung
Miaoqian Lin 85d899f396 ASoC: samsung: Fix refcount leak in aries_audio_probe
[ Upstream commit bf4a9b2467 ]

of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when done.
If extcon_find_edev_by_node() fails, it doesn't call of_node_put()
Calling of_node_put() after extcon_find_edev_by_node() to fix this.

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/20220512043828.496-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:22:57 +02:00
..
aries_wm8994.c ASoC: samsung: Fix refcount leak in aries_audio_probe 2022-06-09 10:22:57 +02:00
arndale.c ASoC: samsung: Use dev_err_probe() helper 2022-06-09 10:22:56 +02:00
bells.c
dma.h
dmaengine.c
h1940_uda1380.c ASoC: samsung: Constify static snd_soc_ops 2021-07-29 15:35:48 +01:00
i2s-regs.h
i2s.c ASoC: samsung: i2s: Use devm_platform_get_and_ioremap_resource() 2021-06-21 13:06:20 +01:00
i2s.h
idma.c ASoC: samsung: idma: Check of ioremap return value 2022-01-27 11:04:17 +01:00
idma.h
jive_wm8750.c
Kconfig
littlemill.c ASoC: samsung: Use dev_err_probe() helper 2022-06-09 10:22:56 +02:00
lowland.c ASoC: samsung: Use dev_err_probe() helper 2022-06-09 10:22:56 +02:00
Makefile
midas_wm1811.c ASoC: samsung: Constify static snd_soc_ops 2021-07-29 15:35:48 +01:00
neo1973_wm8753.c ASoC: samsung: Constify static snd_soc_ops 2021-07-29 15:35:48 +01:00
odroid.c ASoC: samsung: Use dev_err_probe() helper 2022-06-09 10:22:56 +02:00
pcm.c ASoC: samsung: pcm: Use devm_platform_get_and_ioremap_resource() 2021-06-21 13:06:21 +01:00
pcm.h
regs-i2s-v2.h
regs-iis.h
rx1950_uda1380.c ASoC: samsung: Constify static snd_soc_ops 2021-07-29 15:35:48 +01:00
s3c-i2s-v2.c
s3c-i2s-v2.h
s3c24xx-i2s.c ASoC: samsung: s3c24xx-i2s: Use devm_platform_get_and_ioremap_resource() 2021-06-21 13:06:23 +01:00
s3c24xx-i2s.h
s3c24xx_simtec.c ASoC: samsung: s3c24xx_simtec: fix spelling mistake "devicec" -> "device" 2021-09-01 16:46:48 +01:00
s3c24xx_simtec.h
s3c24xx_simtec_hermes.c
s3c24xx_simtec_tlv320aic23.c
s3c24xx_uda134x.c
s3c2412-i2s.c ASoC: samsung: s3c2412-i2s: Use devm_platform_get_and_ioremap_resource() 2021-06-21 13:06:22 +01:00
s3c2412-i2s.h
smartq_wm8987.c ASoC: samsung: Constify static snd_soc_ops 2021-07-29 15:35:48 +01:00
smdk_spdif.c
smdk_wm8580.c ASoC: samsung: Constify static snd_soc_ops 2021-07-29 15:35:48 +01:00
smdk_wm8994.c ASoC: samsung: Use dev_err_probe() helper 2022-06-09 10:22:56 +02:00
smdk_wm8994pcm.c ASoC: samsung: Use dev_err_probe() helper 2022-06-09 10:22:56 +02:00
snow.c ASoC: samsung: Use dev_err_probe() helper 2022-06-09 10:22:56 +02:00
spdif.c
spdif.h
speyside.c ASoC: samsung: Use dev_err_probe() helper 2022-06-09 10:22:56 +02:00
tm2_wm5110.c ASoC: samsung: Use dev_err_probe() helper 2022-06-09 10:22:56 +02:00
tobermory.c ASoC: samsung: Use dev_err_probe() helper 2022-06-09 10:22:56 +02:00