]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add missing NULL check
authorChristian König <christian.koenig@amd.com>
Fri, 6 Oct 2023 12:04:04 +0000 (14:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Oct 2023 21:08:56 +0000 (23:08 +0200)
commita61d905a86879427e330a5a66cba8b2330dac4d1
treeea99978f23e865d1295b2c87ce7df417fa188f44
parent0fb82afee55fc6e12f3581e87d47fd1beae36a98
drm/amdgpu: add missing NULL check

commit ff89f064dca38e2203790bf876cc7756b8ab2961 upstream.

bo->tbo.resource can easily be NULL here.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2902
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
CC: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h