From 265e78c7dc8f87dc70a85f07bcf5efcd3fb98b4c Mon Sep 17 00:00:00 2001 From: Jing Xiang Date: Mon, 10 Jun 2013 23:52:42 +0800 Subject: video: mmp: fix memcpy wrong size for mmp_addr issue Memcpy used wrong struct of mmp_win, fix it. Signed-off-by: Jing Xiang Signed-off-by: Jett.Zhou Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD diff --git a/drivers/video/mmp/hw/mmp_ctrl.c b/drivers/video/mmp/hw/mmp_ctrl.c index 4bd31b2..cc62a79 100644 --- a/drivers/video/mmp/hw/mmp_ctrl.c +++ b/drivers/video/mmp/hw/mmp_ctrl.c @@ -238,7 +238,7 @@ static int overlay_set_addr(struct mmp_overlay *overlay, struct mmp_addr *addr) struct lcd_regs *regs = path_regs(overlay->path); /* FIXME: assert addr supported */ - memcpy(&overlay->addr, addr, sizeof(struct mmp_win)); + memcpy(&overlay->addr, addr, sizeof(struct mmp_addr)); writel(addr->phys[0], ®s->g_0); return overlay->addr.phys[0]; -- cgit v0.10.2