提交 d977a573 编写于 作者: L Luigi 'Comio' Mantellini 提交者: Wolfgang Denk

Fix lzma uncompress call (image_start wrongly used instead image_len)

Signed-off-by: NLuigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
上级 b3ed2331
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册