diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c index 54b1fb90..f4e04352 100644 --- a/amdgpu/amdgpu_bo.c +++ b/amdgpu/amdgpu_bo.c @@ -533,7 +533,7 @@ drm_public int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev, amdgpu_bo_handle *buf_handle, uint64_t *offset_in_bo) { - struct amdgpu_bo *bo; + struct amdgpu_bo *bo = NULL; uint32_t i; int r = 0;