Commit ddaf5013 authored by Tom St Denis's avatar Tom St Denis Committed by Alex Deucher

drm/amd/amdgpu: Avoid fault when allocating an empty buffer object

Signed-off-by: default avatarTom St Denis <tom.stdenis@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 52975728
...@@ -348,6 +348,7 @@ int amdgpu_bo_create_kernel(struct amdgpu_device *adev, ...@@ -348,6 +348,7 @@ int amdgpu_bo_create_kernel(struct amdgpu_device *adev,
if (r) if (r)
return r; return r;
if (*bo_ptr)
amdgpu_bo_unreserve(*bo_ptr); amdgpu_bo_unreserve(*bo_ptr);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment