drm/amdgpu: Fix a deadlock if previous GEM object allocation fails
authorxinhui pan <xinhui.pan@amd.com>
Tue, 31 Aug 2021 05:49:59 +0000 (13:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Aug 2021 18:20:08 +0000 (14:20 -0400)
commit703677d9345d87d7288ed8a2483ca424af7d4b3b
tree86eb106eab5cbc693e7020b1ec45b76670843dbe
parentf7d6779df642720e22bffd449e683bb8690bd3bf
drm/amdgpu: Fix a deadlock if previous GEM object allocation fails

Fall through to handle the error instead of return.

Fixes: f8aab60422c37 ("drm/amdgpu: Initialise drm_gem_object_funcs for imported BOs")
Cc: stable@vger.kernel.org
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c