]> www.infradead.org Git - users/hch/dma-mapping.git/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)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 1 Jul 2024 20:54:22 +0000 (16:54 -0400)
commit6fb15dcbcf4f212930350eaee174bb60ed40a536
treecc89c49d3e7364ee8372c99418037ef028dfb833
parent0ad4b4a2f6357c45fbe444ead1a929a0b4017d03
drm/radeon: check bo_va->bo is non-NULL before using it

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>
drivers/gpu/drm/radeon/radeon_gem.c