]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix lzma uncompress call (image_start wrongly used instead image_len)
authorLuigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
Sat, 13 Sep 2008 08:04:32 +0000 (10:04 +0200)
committerWolfgang Denk <wd@denx.de>
Mon, 13 Oct 2008 12:46:15 +0000 (14:46 +0200)
Signed-off-by: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
common/cmd_bootm.c

index 19257bbd4cd620edbb8e356b1caf93fd21f7b98f..897e9f6f4040e509233a0cc6dacc2f9c038b031c 100644 (file)
@@ -347,7 +347,7 @@ static int bootm_load_os(image_info_t os, ulong *load_end, int boot_progress)
 
                int ret = lzmaBuffToBuffDecompress(
                        (unsigned char *)load, &unc_len,
-                       (unsigned char *)image_start, image_start);
+                       (unsigned char *)image_start, image_len);
                if (ret != LZMA_RESULT_OK) {
                        printf ("LZMA: uncompress or overwrite error %d "
                                "- must RESET board to recover\n", ret);