diff options
| author | Christophe JAILLET <[email protected]> | 2021-08-16 05:25:10 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2021-08-26 16:42:04 +0000 |
| commit | 7a6a723e98aa45f393e6add18f7309dfffa1b0e2 (patch) | |
| tree | fac32647b1f2727ee41b44929281f957c6187ec8 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | Merge series "Patches to update for rockchip i2s" from Sugar Zhang <sugar.zha... (diff) | |
| download | kernel-7a6a723e98aa45f393e6add18f7309dfffa1b0e2.tar.gz kernel-7a6a723e98aa45f393e6add18f7309dfffa1b0e2.zip | |
ASoC: wcd9335: Fix a double irq free in the remove function
There is no point in calling 'free_irq()' explicitly for
'WCD9335_IRQ_SLIMBUS' in the remove function.
The irqs are requested in 'wcd9335_setup_irqs()' using a resource managed
function (i.e. 'devm_request_threaded_irq()').
'wcd9335_setup_irqs()' requests all what is defined in the 'wcd9335_irqs'
structure.
This structure has only one entry for 'WCD9335_IRQ_SLIMBUS'.
So 'devm_request...irq()' + explicit 'free_irq()' would lead to a double
free.
Remove the unneeded 'free_irq()' from the remove function.
Fixes: 20aedafdf492 ("ASoC: wcd9335: add support to wcd9335 codec")
Signed-off-by: Christophe JAILLET <[email protected]>
Message-Id: <0614d63bc00edd7e81dd367504128f3d84f72efa.1629091028.git.christophe.jaillet@wanadoo.fr>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
