diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-07-26 03:42:03 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-07-26 03:42:03 +0000 |
commit | 5c734f477f85f546f78c81fce352b59a774ec6e3 (patch) | |
tree | e316f1fa9011f2d3f79a8b6227571b1785768937 /sys | |
parent | f6caebf1d4aa94ef76f748fdca87ea63941589d4 (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.c | 2 |
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: |