Dan Carpenter 03fb3c455a 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>
2020-12-29 13:45:00 +01:00
..
2015-11-06 11:04:07 -08:00
2015-10-05 17:42:49 +01:00
2014-02-19 13:36:15 +09:00
2014-04-07 10:48:50 +01:00
2015-07-07 13:35:13 +01:00
2014-08-16 17:17:13 -05:00
2015-08-28 17:17:29 +01:00
2016-08-08 11:55:20 +01:00
2016-05-30 16:15:55 +01:00
2016-04-28 18:16:04 +01:00
2015-03-11 19:16:07 +00:00
2016-01-27 20:23:20 +00:00
2015-11-16 13:17:01 +00:00
2017-10-08 10:26:12 +02:00
2015-12-19 12:02:18 +00:00
2017-10-08 10:26:12 +02:00
2017-10-08 10:26:12 +02:00
2016-09-24 19:51:57 +01:00
2016-10-13 15:01:32 +02:00
2016-09-14 16:22:14 +01:00
2014-07-02 20:49:25 +01:00
2016-06-26 12:28:13 +01:00
2018-01-02 20:35:08 +01:00
2015-07-13 11:51:35 +01:00
2018-10-18 09:13:19 +02:00
2015-04-08 19:25:40 +01:00
2020-01-12 11:24:23 +01:00
2013-08-13 11:31:56 +01:00