diff options
author | Dan Carpenter <[email protected]> | 2020-12-09 09:54:09 +0300 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-12-11 13:21:35 +0000 |
commit | 85a7555575a0e48f9b73db310d0d762a08a46d63 (patch) | |
tree | 7f29aa1ff3e7b51a8058cd570fb785c6e769b245 /fs/xfs/xfs_trans.h | |
parent | 718c406e1ffaca4eac987b957bbb36ce1090797a (diff) |
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 <[email protected]>
Acked-by: Charles Keepax <[email protected]>
Link: https://lore.kernel.org/r/X9B0keV/02wrx9Xs@mwanda
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_trans.h')
0 files changed, 0 insertions, 0 deletions