mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
drm/rockchip: rga: fix potential buffer overflow
Change-Id: Id923e38264855320fbe994bed156bf16eac60245 Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
/* cmdlist data structure */
|
||||
struct rga_cmdlist {
|
||||
u32 head;
|
||||
u32 data[RGA_CMDLIST_SIZE * 2];
|
||||
u32 data[(RGA_CMDLIST_SIZE + RGA_CMDBUF_SIZE) * 2];
|
||||
u32 last; /* last data offset */
|
||||
void *src_mmu_pages;
|
||||
void *dst_mmu_pages;
|
||||
|
||||
Reference in New Issue
Block a user