]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit42a7a13765e773cf98cdd1ec17896e046a1ac112
tree86eb106eab5cbc693e7020b1ec45b76670843dbe
parent31670e2d09032293a8407cc00e2f5fc4d6fc3df4
drm/amdgpu: Fix a deadlock if previous GEM object allocation fails

Fall through to handle the error instead of return.

Fixes: 8d69a39a9c3e7 ("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