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

Tom Rini trini at ti.com
Wed Jan 7 16:15:29 CET 2015


On Wed, Dec 10, 2014 at 06:20:53PM +0800, Sonic Zhang 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>
> Acked-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150107/6bc8d713/attachment.pgp>


More information about the U-Boot mailing list