From d977a57356657ba241256231efca32828a5822f9 Mon Sep 17 00:00:00 2001 From: Luigi 'Comio' Mantellini Date: Sat, 13 Sep 2008 10:04:32 +0200 Subject: [PATCH] Fix lzma uncompress call (image_start wrongly used instead image_len) Signed-off-by: Luigi 'Comio' Mantellini --- common/cmd_bootm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 19257bbd4c..897e9f6f40 100644 --- a/common/cmd_bootm.c +++ b/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); -- 2.30.2