mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 10:36:41 +07:00
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>
This commit is contained in:
parent
8ea2c86449
commit
265e78c7dc
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user