diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-12-09 09:54:09 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-30 13:26:03 +0300 |
commit | 99ade218a3054746a943b3ec7ecc8b4168d09975 (patch) | |
tree | 3a6a557a94dae202fa438f61bfb87fe12cb4945a /drivers/irqchip | |
parent | ebbd7dc7ca856a182769c17c4c8a739cedc064c4 (diff) | |
download | linux-99ade218a3054746a943b3ec7ecc8b4168d09975.tar.xz |
ASoC: wm_adsp: remove "ctl" from list on error in wm_adsp_create_control()
[ Upstream commit 85a7555575a0e48f9b73db310d0d762a08a46d63 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/irqchip')
0 files changed, 0 insertions, 0 deletions