From: Luigi 'Comio' Mantellini Date: Sat, 13 Sep 2008 08:04:32 +0000 (+0200) Subject: Fix lzma uncompress call (image_start wrongly used instead image_len) X-Git-Tag: v2025.01-rc5-pxa1908~21786^2~29 X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=d977a57356657ba241256231efca32828a5822f9;p=u-boot.git Fix lzma uncompress call (image_start wrongly used instead image_len) Signed-off-by: Luigi 'Comio' Mantellini --- 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);