diff options
author | 2020-12-09 09:54:09 +0300 | |
---|---|---|
committer | 2020-12-11 13:21:35 +0000 | |
commit | 85a7555575a0e48f9b73db310d0d762a08a46d63 (patch) | |
tree | 7f29aa1ff3e7b51a8058cd570fb785c6e769b245 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ASoC: AMD Renoir - add DMI table to avoid the ACP mic probe (broken BIOS) (diff) | |
download | wireguard-linux-85a7555575a0e48f9b73db310d0d762a08a46d63.tar.xz wireguard-linux-85a7555575a0e48f9b73db310d0d762a08a46d63.zip |
ASoC: wm_adsp: remove "ctl" from list on error in wm_adsp_create_control()
The error handling frees "ctl" but it's still on the "dsp->ctl_list"
list so that could result in a use after free. Remove it from the list
before returning.
Fixes: 2323736dca72 ("ASoC: wm_adsp: Add basic support for rev 1 firmware file format")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/X9B0keV/02wrx9Xs@mwanda
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