[new uImage] Return error on image move/uncompress overwrites
authorMarian Balakowicz <m8@semihalf.com>
Thu, 31 Jan 2008 12:20:06 +0000 (13:20 +0100)
committerWolfgang Denk <wd@denx.de>
Thu, 7 Feb 2008 00:12:57 +0000 (01:12 +0100)
commit7582438c285bf0cef82909d0f232de64ec567a8a
tree7f4b2b137dd500e005d14f3594fefefe58ec64fd
parentf13e7b2e993c61fed1f607962501e051940d6e80
[new uImage] Return error on image move/uncompress overwrites

Check for overwrites during image move/uncompress, return with error
when the original image gets corrupted. Report clear message to the user
and prevent further troubles when pointer to the corrupted images is passed
to do_bootm_linux routine.

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
common/cmd_bootm.c
lib_ppc/ppc_linux.c