[U-Boot] [PATCH] memmove_wd: copy chunk down from big address if parameter to is larger than from

Simon Glass sjg at chromium.org
Mon Dec 15 22:22:04 CET 2014


On 10 December 2014 at 03:20, Sonic Zhang <sonic.adi at gmail.com> wrote:
> From: Sonic Zhang <sonic.zhang at analog.com>
>
> When watchdog is enabled, memmove_wd() always copy chunk up from small address.
> This damanges overlapped memory data if destination address is smaller than
> source address.
>
> Signed-off-by: Sonic Zhang <sonic.zhang at analog.com>
> ---
>
>  common/image.c |   14 ++++++++++++--
>  1 file changed, 12 insertions(+), 2 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list