diff options
author | Cong Liu <liucong2@kylinos.cn> | 2023-09-14 17:45:33 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-09-20 16:24:07 -0400 |
commit | 5838f74c29ecc4eac397a2374cf208efcf095563 (patch) | |
tree | 3ff24f6dde0f9f763e62598449d37078e861a1db /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 24f60ddc4b55ceb148e6eb994defb28305ec9b56 (diff) |
drm/amdgpu: fix a memory leak in amdgpu_ras_feature_enable
This patch fixes a memory leak in the amdgpu_ras_feature_enable() function.
The leak occurs when the function sends a command to the firmware to enable
or disable a RAS feature for a GFX block. If the command fails, the kfree()
function is not called to free the info memory.
Fixes: 9f051d6ff13f ("drm/amdgpu: Free ras cmd input buffer properly")
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Cong Liu <liucong2@kylinos.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions