* [V2 4/7] video: mmp: fix memcpy wrong size for mmp_addr issue
@ 2013-06-10 15:52 Jett.Zhou
2013-06-21 17:13 ` Daniel Drake
0 siblings, 1 reply; 2+ messages in thread
From: Jett.Zhou @ 2013-06-10 15:52 UTC (permalink / raw)
To: linux-arm-kernel
From: Jing Xiang <jxiang@marvell.com>
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>
---
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 8836053..92a5f44 100644
--- a/drivers/video/mmp/hw/mmp_ctrl.c
+++ b/drivers/video/mmp/hw/mmp_ctrl.c
@@ -233,7 +233,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];
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [V2 4/7] video: mmp: fix memcpy wrong size for mmp_addr issue
2013-06-10 15:52 [V2 4/7] video: mmp: fix memcpy wrong size for mmp_addr issue Jett.Zhou
@ 2013-06-21 17:13 ` Daniel Drake
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Drake @ 2013-06-21 17:13 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Jun 10, 2013 at 9:52 AM, Jett.Zhou <jtzhou@marvell.com> wrote:
> From: Jing Xiang <jxiang@marvell.com>
>
> 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>
Reviewed-by: Daniel Drake <dsd@laptop.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-21 17:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-10 15:52 [V2 4/7] video: mmp: fix memcpy wrong size for mmp_addr issue Jett.Zhou
2013-06-21 17:13 ` Daniel Drake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).