artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f818947
)
drm/radeon: Fix integer overflow in radeon_cs_parser_init
author
jsg
<jsg@openbsd.org>
Fri, 28 Jul 2023 06:47:10 +0000
(06:47 +0000)
committer
jsg
<jsg@openbsd.org>
Fri, 28 Jul 2023 06:47:10 +0000
(06:47 +0000)
From hackyzh002
2e1be420b86980c25a75325e90dfc3fc73126f61
in linux-6.1.y/6.1.42
f828b681d0cd566f86351c0b913e6cb6ed8c7b9c
in mainline linux
sys/dev/pci/drm/radeon/radeon_cs.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/radeon/radeon_cs.c
b/sys/dev/pci/drm/radeon/radeon_cs.c
index
820d50c
..
a185e1f
100644
(file)
--- a/
sys/dev/pci/drm/radeon/radeon_cs.c
+++ b/
sys/dev/pci/drm/radeon/radeon_cs.c
@@
-274,7
+274,8
@@
int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data)
{
struct drm_radeon_cs *cs = data;
uint64_t *chunk_array_ptr;
- unsigned size, i;
+ u64 size;
+ unsigned i;
u32 ring = RADEON_CS_RING_GFX;
s32 priority = 0;