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:
Jacob Chen
2017-03-10 15:21:08 +08:00
committed by Huang, Tao
parent 89211fb8a7
commit 181f6bdcff

View File

@@ -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;