Christophe JAILLET fc6fc81caa
ASoC: wcd9335: Fix a memory leak in the error handling path of the probe function
If 'wcd9335_setup_irqs()' fails, me must release the memory allocated in
'wcd_clsh_ctrl_alloc()', as already done in the remove function.

Add an error handling path and the missing 'wcd_clsh_ctrl_free()' call.

Fixes: 20aedafdf492 ("ASoC: wcd9335: add support to wcd9335 codec")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Message-Id: <6dc12372f09fabb70bf05941dbe6a1382dc93e43.1629091028.git.christophe.jaillet@wanadoo.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-08-26 17:42:05 +01:00
..
2021-07-01 08:36:12 +02:00
2021-05-30 09:33:08 +02:00
2021-07-05 19:34:22 +02:00
2021-04-27 08:39:39 +02:00
2021-07-05 19:29:28 +02:00
2021-03-07 09:07:16 +01:00
2021-03-07 09:07:16 +01:00