瀏覽代碼

Fix lzma uncompress call (image_start wrongly used instead image_len)

Signed-off-by: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
Luigi 'Comio' Mantellini 16 年之前
父節點
當前提交
d977a57356
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      common/cmd_bootm.c

+ 1 - 1
common/cmd_bootm.c

@@ -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);