diff options
author | 2023-12-04 15:41:56 +0800 | |
---|---|---|
committer | 2023-12-04 13:00:13 +0000 | |
commit | 29046a78a3c0a1f8fa0427f164caa222f003cf5b (patch) | |
tree | a869750e9d235d3881685e1649c34b87ae694302 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ASoC: da7219: Support low DC impedance headset (diff) | |
download | wireguard-linux-29046a78a3c0a1f8fa0427f164caa222f003cf5b.tar.xz wireguard-linux-29046a78a3c0a1f8fa0427f164caa222f003cf5b.zip |
ASoC: wm_adsp: fix memleak in wm_adsp_buffer_populate
When wm_adsp_buffer_read() fails, we should free buf->regions.
Otherwise, the callers of wm_adsp_buffer_populate() will
directly free buf on failure, which makes buf->regions a leaked
memory.
Fixes: a792af69b08f ("ASoC: wm_adsp: Refactor compress stream initialisation")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20231204074158.12026-1-dinghao.liu@zju.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions