summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-07-26 03:42:03 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-07-26 03:42:03 +0000
commit5c734f477f85f546f78c81fce352b59a774ec6e3 (patch)
treee316f1fa9011f2d3f79a8b6227571b1785768937 /sys
parentf6caebf1d4aa94ef76f748fdca87ea63941589d4 (diff)
drm/radeon: check bo_va->bo is non-NULL before using it
From Pierre-Eric Pelloux-Prayer f13c96e0e325a057c03f8a47734adb360e112efe in linux-6.6.y/6.6.42 6fb15dcbcf4f212930350eaee174bb60ed40a536 in mainline linux
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/radeon/radeon_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_gem.c b/sys/dev/pci/drm/radeon/radeon_gem.c
index 18c35adb98c..b9db67ce876 100644
--- a/sys/dev/pci/drm/radeon/radeon_gem.c
+++ b/sys/dev/pci/drm/radeon/radeon_gem.c
@@ -734,7 +734,7 @@ static void radeon_gem_va_update_vm(struct radeon_device *rdev,
if (r)
goto error_unlock;
- if (bo_va->it.start)
+ if (bo_va->it.start && bo_va->bo)
r = radeon_vm_bo_update(rdev, bo_va, bo_va->bo->tbo.resource);
error_unlock: