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:01:32 +0000 (17:01 -0400)
commit31220ee9dc5a3e25d38d29d3816b6e79d8c39abc
treebc93ed30c10dceb7425c9d9ff4efb38f91b32804
parentdcc71a7e1e230c25748b49c1148cc470cc4d72cf
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