diff options
author | Jing Xiang <jxiang@marvell.com> | 2013-06-10 23:52:42 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2013-06-27 16:53:11 +0800 |
commit | 265e78c7dc8f87dc70a85f07bcf5efcd3fb98b4c (patch) | |
tree | 2d955e860776a12719d121ae45843ec632c3fc4f /drivers/video | |
parent | 8ea2c86449bdf0fe32fd043c714054962d8802ca (diff) | |
download | linux-265e78c7dc8f87dc70a85f07bcf5efcd3fb98b4c.tar.bz2 |
video: mmp: fix memcpy wrong size for mmp_addr issue
Memcpy used wrong struct of mmp_win, fix it.
Signed-off-by: Jing Xiang <jxiang@marvell.com>
Signed-off-by: Jett.Zhou <jtzhou@marvell.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/mmp/hw/mmp_ctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/mmp/hw/mmp_ctrl.c b/drivers/video/mmp/hw/mmp_ctrl.c index 4bd31b2af398..cc62a79ed0cd 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]; |