]> git.dujemihanovic.xyz Git - u-boot.git/commit
memmove_wd: copy chunk down from big address if parameter to is larger than from
authorSonic Zhang <sonic.zhang@analog.com>
Wed, 10 Dec 2014 10:20:53 +0000 (18:20 +0800)
committerTom Rini <trini@ti.com>
Mon, 5 Jan 2015 21:40:19 +0000 (16:40 -0500)
commit22cfddc2a0343cdbef7f1263830c2dacaa75f22e
treeea6070f8d43b7fe181e5046005da58d86379cc5e
parenteb54d2c70ce3b14e0c9ae141e216d5ad0b22d0dd
memmove_wd: copy chunk down from big address if parameter to is larger than from

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@analog.com>
Acked-by: Simon Glass <sjg@chromium.org>
common/image.c