mirror_ubuntu-kernels/drivers/gpu/drm/amd
Tom Rix 574ff46f10 drm/amdkfd: fix freeing an unset pointer
clang static analysis reports this problem
kfd_chardev.c:2092:2: warning: 1st function call argument
  is an uninitialized value
        kvfree(bo_privs);
        ^~~~~~~~~~~~~~~~

When bo_buckets alloc fails, it jumps to an error handler
that frees the yet to be allocated bo_privs.  Because
bo_buckets is the first error, return directly.

Fixes: 5ccbb057c0 ("drm/amdkfd: CRIU Implement KFD checkpoint ioctl")
Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-02-11 16:10:40 -05:00
..
acp
amdgpu drm/amdgpu: fix gmc init fail in sriov mode 2022-02-09 16:57:52 -05:00
amdkfd drm/amdkfd: fix freeing an unset pointer 2022-02-11 16:10:40 -05:00
display drm/amdgpu: move dpcs_3_0_3 headers from dcn to dpcs 2022-02-07 18:03:50 -05:00
include drm/amdkfd: Remove unused old debugger implementation 2022-02-09 16:57:51 -05:00
pm drm/amd/pm: fix enabled features retrieving on Renoir and Cyan Skillfish 2022-02-11 16:07:56 -05:00