]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: Remove useless kfree
authorHaowen Bai <baihaowen@meizu.com>
Fri, 22 Apr 2022 06:03:57 +0000 (14:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Apr 2022 21:05:38 +0000 (17:05 -0400)
After alloc fail, we do not need to kfree.

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

index 03ce3ce913e454c2a6f7d45fe2688be4c49e9d54..7e126dff004fa9b20e8d6fe3f53bdeada82e36bf 100644 (file)
@@ -1921,7 +1921,6 @@ static int amdgpu_ras_realloc_eh_data_space(struct amdgpu_device *adev,
        void *bps = kmalloc(align_space * sizeof(*data->bps), GFP_KERNEL);
 
        if (!bps) {
-               kfree(bps);
                return -ENOMEM;
        }