From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [V1 4/7] video: mmp: fix memcpy wrong size for mmp_addr issue
Date: Sun, 09 Jun 2013 12:01:35 +0000 [thread overview]
Message-ID: <51B46E9F.9020105@cogentembedded.com> (raw)
In-Reply-To: <1370767470-11615-1-git-send-email-jtzhou@marvell.com>
Hello.
On 09-06-2013 12:44, Jett.Zhou wrote:
> From: Jing Xiang <jxiang@marvell.com>
> Memcpy used wrong struct of mmp_addr, fix it.
From the patch it follows that 'struct mmp_addr' is the right one. :-)
> 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];
WBR, Sergei
WARNING: multiple messages have this Message-ID (diff)
From: sergei.shtylyov@cogentembedded.com (Sergei Shtylyov)
To: linux-arm-kernel@lists.infradead.org
Subject: [V1 4/7] video: mmp: fix memcpy wrong size for mmp_addr issue
Date: Sun, 09 Jun 2013 16:01:35 +0400 [thread overview]
Message-ID: <51B46E9F.9020105@cogentembedded.com> (raw)
In-Reply-To: <1370767470-11615-1-git-send-email-jtzhou@marvell.com>
Hello.
On 09-06-2013 12:44, Jett.Zhou wrote:
> From: Jing Xiang <jxiang@marvell.com>
> Memcpy used wrong struct of mmp_addr, fix it.
From the patch it follows that 'struct mmp_addr' is the right one. :-)
> 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];
WBR, Sergei
next prev parent reply other threads:[~2013-06-09 12:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-09 8:44 [V1 4/7] video: mmp: fix memcpy wrong size for mmp_addr issue Jett.Zhou
2013-06-09 12:01 ` Sergei Shtylyov [this message]
2013-06-09 12:01 ` Sergei Shtylyov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51B46E9F.9020105@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.