diff options
| author | Axel Lin <[email protected]> | 2015-08-29 15:09:30 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2015-08-30 14:47:54 +0000 |
| commit | 534dcd7ea60cebc41816eff0c290700acb2cc43e (patch) | |
| tree | 840e2f87ac1b876a4b21652b51d2c5cef1e9ff35 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | Linux 4.2-rc2 (diff) | |
| download | kernel-534dcd7ea60cebc41816eff0c290700acb2cc43e.tar.gz kernel-534dcd7ea60cebc41816eff0c290700acb2cc43e.zip | |
ASoC: zx296702-i2s: Fix resource leak when unload module
Use devm_* API to fix leaks in current code.
1. Use devm_kzalloc to fix memory leak for zx_i2s when unload the module.
2. Use devm_snd_soc_register_component to ensure component is unregistered
when unload the module.
Signed-off-by: Axel Lin <[email protected]>
Reviewed-by: Jun Nie <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
