mirror-linux/sound/soc/renesas/rcar
Haotian Zhang 360b3730f8
ASoC: rsnd: fix OF node reference leak in rsnd_ssiu_probe()
rsnd_ssiu_probe() leaks an OF node reference obtained by
rsnd_ssiu_of_node(). The node reference is acquired but
never released across all return paths.

Fix it by declaring the device node with the __free(device_node)
cleanup construct to ensure automatic release when the variable goes
out of scope.

Fixes: 4e7788fb80 ("ASoC: rsnd: add SSIU BUSIF support")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/20251112065709.1522-1-vulab@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-11-13 00:36:01 +00:00
..
Makefile ASoC: renesas: add MSIOF sound support 2025-04-26 02:17:37 +01:00
adg.c ASoC: renesas: rsnd: enable to use "adg" clock 2025-04-26 02:17:36 +01:00
cmd.c
core.c ASoC: codecs: pcm1754: add pcm1754 dac driver 2025-09-16 22:42:16 +01:00
ctu.c ASoC: renesas: Use helper function for_each_child_of_node_scoped() 2025-06-08 23:30:48 +01:00
debugfs.c
dma.c ASoC: renesas: Use helper function for_each_child_of_node_scoped() 2025-06-08 23:30:48 +01:00
dvc.c ASoC: renesas: Use helper function for_each_child_of_node_scoped() 2025-06-08 23:30:48 +01:00
gen.c
mix.c ASoC: renesas: Use helper function for_each_child_of_node_scoped() 2025-06-08 23:30:48 +01:00
msiof.c ASoC: renesas: msiof: ignore 1st FSERR 2025-09-25 17:43:30 +01:00
rsnd.h ASoC: rsnd: don't indicate warning on rsnd_kctrl_accept_runtime() 2025-02-05 12:28:13 +00:00
src.c ASoC: renesas: rsnd: Use guard() for spin locks 2025-09-08 15:42:04 +01:00
ssi.c ASoC: renesas: rsnd: Use guard() for spin locks 2025-09-08 15:42:04 +01:00
ssiu.c ASoC: rsnd: fix OF node reference leak in rsnd_ssiu_probe() 2025-11-13 00:36:01 +00:00