Skip to content

Commit

Permalink
video: mmp: fix memcpy wrong size for mmp_addr issue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jing Xiang authored and Jean-Christophe PLAGNIOL-VILLARD committed Jun 27, 2013
1 parent 8ea2c86 commit 265e78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/mmp/hw/mmp_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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], &regs->g_0);

return overlay->addr.phys[0];
Expand Down

0 comments on commit 265e78c

Please sign in to comment.