diff --git a/drivers/video/rockchip/rga2/rga2_mmu_info.c b/drivers/video/rockchip/rga2/rga2_mmu_info.c index 72ff0099e356..97cb671f5d0a 100644 --- a/drivers/video/rockchip/rga2/rga2_mmu_info.c +++ b/drivers/video/rockchip/rga2/rga2_mmu_info.c @@ -468,6 +468,7 @@ static int rga2_mmu_info_BitBlt_mode(struct rga2_reg *reg, struct rga2_req *req) req->dst.vir_w, req->dst.vir_h, &DstStart); + DstPageCount = (DstPageCount + 3) & (~3); if (DstPageCount == 0) return -EINVAL; }