mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
fix rga driver mmu table malloc crash bug
This commit is contained in:
@@ -468,6 +468,8 @@ static int rga_mmu_info_BitBlt_mode(struct rga_reg *reg, struct rga_req *req)
|
||||
}
|
||||
|
||||
/* Cal out the needed mem size */
|
||||
SrcMemSize = (SrcMemSize + 15) & (~15);
|
||||
DstMemSize = (DstMemSize + 15) & (~15);
|
||||
AllSize = SrcMemSize + DstMemSize;
|
||||
|
||||
pages = kzalloc((AllSize + 1)* sizeof(struct page *), GFP_KERNEL);
|
||||
|
||||
Reference in New Issue
Block a user