Dan Carpenter 85a7555575
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>
2020-12-11 13:21:35 +00:00
..
2020-10-12 16:08:57 +02:00
2020-08-21 10:07:54 -07:00
2020-07-09 13:01:29 +02:00
2020-01-28 16:26:57 -08:00
2020-01-05 16:15:13 +01:00
2020-01-05 16:14:46 +01:00
2020-10-23 13:59:05 -07:00
2019-08-08 08:18:32 +02:00