[PATCH v2] drm/amdgpu: Fix a deadlock if previous GEM object allocation fails
Pan, Xinhui
Xinhui.Pan at amd.com
Tue Aug 31 05:55:43 UTC 2021
Fall through to handle the error instead of return.
Signed-off-by: xinhui pan <xinhui.pan at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
index 85b292ed5c43..7ddd429052ea 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
@@ -355,7 +355,6 @@ int amdgpu_gem_create_ioctl(struct drm_device *dev, void *data,
DRM_DEBUG("Failed to allocate GEM object (%llu, %d, %llu, %d)\n",
size, initial_domain, args->in.alignment, r);
}
- return r;
}
if (flags & AMDGPU_GEM_CREATE_VM_ALWAYS_VALID) {
--
2.25.1
More information about the amd-gfx
mailing list