diff options
| author | Christophe JAILLET <[email protected]> | 2021-08-16 05:25:20 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2021-08-26 16:42:05 +0000 |
| commit | fc6fc81caa63900cef9ebb8b2e365c3ed5a9effb (patch) | |
| tree | ef21fd026fd236d867e78880d65554ddb64458cf /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | |
| parent | ASoC: wcd9335: Fix a double irq free in the remove function (diff) | |
| download | kernel-fc6fc81caa63900cef9ebb8b2e365c3ed5a9effb.tar.gz kernel-fc6fc81caa63900cef9ebb8b2e365c3ed5a9effb.zip | |
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 <[email protected]>
Message-Id: <6dc12372f09fabb70bf05941dbe6a1382dc93e43.1629091028.git.christophe.jaillet@wanadoo.fr>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
0 files changed, 0 insertions, 0 deletions
