]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:42:23 +0000 (13:42 +0200)
commit06d58b770c72454452e53b9db4cde8c384f707e8
treee2d2f3b03c5794e02a23c5a36baf2e50f09f120b
parent6fdacfc6042f1b59a059beee4bdef0e5c7216d97
drm/amdgpu: Fix a deadlock if previous GEM object allocation fails

commit 703677d9345d87d7288ed8a2483ca424af7d4b3b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c