summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorFelix Kuehling <Felix.Kuehling@amd.com>2021-12-08 04:23:14 +0300
committerAlex Deucher <alexander.deucher@amd.com>2021-12-14 00:32:35 +0300
commit726be40607264b180a2b336c81e1dcff941de618 (patch)
treec91f0c97315996214020f9714eab1258e931c78d /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parent0771c805918c56b335c8f726e147b19c4f78565b (diff)
downloadlinux-726be40607264b180a2b336c81e1dcff941de618.tar.xz
drm/amdkfd: Fix error handling in svm_range_add
Add null-pointer check after the last svm_range_new call. This was originally reported by Zhou Qingyang <zhou1615@umn.edu> based on a static analyzer. To avoid duplicating the unwinding code from svm_range_handle_overlap, I merged the two functions into one. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Cc: Zhou Qingyang <zhou1615@umn.edu> Reviewed-by: Philip Yang <Philip.Yang@amd.com> 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