]> git.hungrycats.org Git - linux/commit
drm/radeon: check bo_va->bo is non-NULL before using it
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 25 Jun 2024 12:31:34 +0000 (14:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2024 07:53:38 +0000 (09:53 +0200)
commit8a500b3a5f0a58c6f99039091fbd715f64f2f8af
tree7a23d37f8734f24b974e68fb0e67a5358feb83b8
parent94166fe12543fbef122ca2d093e794ea41073a85
drm/radeon: check bo_va->bo is non-NULL before using it

[ Upstream commit 6fb15dcbcf4f212930350eaee174bb60ed40a536 ]

The call to radeon_vm_clear_freed might clear bo_va->bo, so
we have to check it before dereferencing it.

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/radeon/radeon_gem.c