artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb31fcd
)
drm/amdgpu: Fix potential NULL dereference
author
jsg
<jsg@openbsd.org>
Thu, 19 Jan 2023 00:32:55 +0000
(
00:32
+0000)
committer
jsg
<jsg@openbsd.org>
Thu, 19 Jan 2023 00:32:55 +0000
(
00:32
+0000)
From Luben Tuikov
f2faf0699af78968a27ca154bf76e94247f8c471
in linux-6.1.y/6.1.7
0be7ed8e7eb15282b5d0f6fdfea884db594ea9bf
in mainline linux
sys/dev/pci/drm/amd/amdgpu/amdgpu_object.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/amdgpu_object.c
b/sys/dev/pci/drm/amd/amdgpu/amdgpu_object.c
index
80e4bea
..
edc3cbd
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/amdgpu_object.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/amdgpu_object.c
@@
-469,8
+469,9
@@
static bool amdgpu_bo_validate_size(struct amdgpu_device *adev,
return true;
fail:
- DRM_DEBUG("BO size %lu > total memory in domain: %llu\n", size,
- man->size);
+ if (man)
+ DRM_DEBUG("BO size %lu > total memory in domain: %llu\n", size,
+ man->size);
return false;
}