drm/amdgpu: fix dropped backing store handling in amdgpu_dma_buf_move_notify
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Fri, 10 Dec 2021 08:39:27 +0000 (09:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jan 2022 14:35:17 +0000 (15:35 +0100)
commit31d95ff41cdfcc49c21226bc1f60b3c96a44b6a6
tree7851c2ee8072a6a993610001acc78ac35f7d28d2
parent4ed66cdc542fdb948d67f2254fdac4106786a76e
drm/amdgpu: fix dropped backing store handling in amdgpu_dma_buf_move_notify

[ Upstream commit fc74881c28d314b10efac016ef49df4ff40b8b97 ]

bo->tbo.resource can now be NULL.

Signed-off-by: Christian König <christian.koenig@amd.com>
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1811
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211210083927.1754-1-christian.koenig@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c