drm/amdgpu: add missing NULL check
authorChristian König <christian.koenig@amd.com>
Fri, 6 Oct 2023 12:04:04 +0000 (14:04 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Oct 2023 21:59:29 +0000 (17:59 -0400)
commitff89f064dca38e2203790bf876cc7756b8ab2961
tree628ba1c9aa72cc4231d1c91c3a4997b0dbbdffa0
parent23645bca98304a2772f0de96f97370dd567d0ae6
drm/amdgpu: add missing NULL check

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
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h