diff options
author | Haoxiang Li <haoxiang_li2024@163.com> | 2025-02-26 11:50:50 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-03-17 02:33:43 +0300 |
commit | 3e330acf4efd63876d673c046cd073a1d4ed57a8 (patch) | |
tree | 9112fa6659ecd297cd5223d2a398fbfa0e063958 /tools/perf/scripts/python/syscall-counts.py | |
parent | ede6445d5405edb418c05582d46d12687b632236 (diff) | |
download | linux-3e330acf4efd63876d673c046cd073a1d4ed57a8.tar.xz |
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 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions