artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3daa78
)
drm/amdgpu: Using uninitialized value *size when calling amdgpu_vce_cs_reloc
author
jsg
<jsg@openbsd.org>
Fri, 12 Jul 2024 03:50:23 +0000
(
03:50
+0000)
committer
jsg
<jsg@openbsd.org>
Fri, 12 Jul 2024 03:50:23 +0000
(
03:50
+0000)
From Jesse Zhang
855ae72c20310e5402b2317fc537d911e87537ef
in linux-6.6.y/6.6.39
88a9a467c548d0b3c7761b4fd54a68e70f9c0944
in mainline linux
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
b/sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
index
6a5128b
..
d7ffec7
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/amdgpu_vce.c
@@
-742,7
+742,8
@@
int amdgpu_vce_ring_parse_cs(struct amdgpu_cs_parser *p,
uint32_t created = 0;
uint32_t allocated = 0;
uint32_t tmp, handle = 0;
- uint32_t *size = &tmp;
+ uint32_t dummy = 0xffffffff;
+ uint32_t *size = &dummy;
unsigned int idx;
int i, r = 0;