diff options
author | 2025-02-26 16:50:50 +0800 | |
---|---|---|
committer | 2025-03-16 23:33:43 +0000 | |
commit | 3e330acf4efd63876d673c046cd073a1d4ed57a8 (patch) | |
tree | 9112fa6659ecd297cd5223d2a398fbfa0e063958 /scripts/lib/kdoc/kdoc_output.py | |
parent | ASoC: soc-pcm: tidyup function name to snd_soc_dpcm_be_can_xxx() (diff) | |
download | linux-rng-3e330acf4efd63876d673c046cd073a1d4ed57a8.tar.xz linux-rng-3e330acf4efd63876d673c046cd073a1d4ed57a8.zip |
ASoC: codecs: wcd937x: fix a potential memory leak in wcd937x_soc_codec_probe()
When snd_soc_dapm_new_controls() or snd_soc_dapm_add_routes() fails,
wcd937x_soc_codec_probe() returns without releasing 'wcd937x->clsh_info',
which is allocated by wcd_clsh_ctrl_alloc. Add wcd_clsh_ctrl_free()
to prevent potential memory leak.
Fixes: 313e978df7fc ("ASoC: codecs: wcd937x: add audio routing and Kconfig")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Link: https://patch.msgid.link/20250226085050.3584898-1-haoxiang_li2024@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions