diff options
| author | Navid Emamdoost <[email protected]> | 2019-10-02 03:46:07 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-10-03 14:11:05 +0000 |
| commit | 1104057562ecc1a48ce75b7ae17af948b3f63d7b (patch) | |
| tree | e686aac383c5de9ca3e2f92fa2d457e8f278eff8 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
| parent | drm/amdgpu: don't increment vram lost if we are in hibernation (diff) | |
| download | kernel-1104057562ecc1a48ce75b7ae17af948b3f63d7b.tar.gz kernel-1104057562ecc1a48ce75b7ae17af948b3f63d7b.zip | |
drm/amdgpu: fix multiple memory leaks in acp_hw_init
In acp_hw_init there are some allocations that needs to be released in
case of failure:
1- adev->acp.acp_genpd should be released if any allocation attemp for
adev->acp.acp_cell, adev->acp.acp_res or i2s_pdata fails.
2- all of those allocations should be released if
mfd_add_hotplug_devices or pm_genpd_add_device fail.
3- Release is needed in case of time out values expire.
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Navid Emamdoost <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions
