Skip to content

Commit d850776

Browse files
committed
drm/radeon: check bo_va->bo is non-NULL before using it
jira LE-3201 cve CVE-2024-41060 Rebuild_History Non-Buildable kernel-rt-4.18.0-553.22.1.rt7.363.el8_10 commit-author Pierre-Eric Pelloux-Prayer <[email protected]> commit ca280d2 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 <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit ca280d2) Signed-off-by: Jonathan Maple <[email protected]>
1 parent 7cc482b commit d850776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/radeon/radeon_gem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ static void radeon_gem_va_update_vm(struct radeon_device *rdev,
657657
if (r)
658658
goto error_unlock;
659659

660-
if (bo_va->it.start)
660+
if (bo_va->it.start && bo_va->bo)
661661
r = radeon_vm_bo_update(rdev, bo_va, bo_va->bo->tbo.resource);
662662

663663
error_unlock:

0 commit comments

Comments
 (0)