summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>2008-09-13 10:04:32 +0200
committerWolfgang Denk <wd@denx.de>2008-10-13 14:46:15 +0200
commitd977a57356657ba241256231efca32828a5822f9 (patch)
tree1791bf469734236935930c50f4d2937dc4948078
parentb3ed233198c5ac54aa83dd51f05fcb44ee75f42b (diff)
downloadu-boot-imx-d977a57356657ba241256231efca32828a5822f9.zip
u-boot-imx-d977a57356657ba241256231efca32828a5822f9.tar.gz
u-boot-imx-d977a57356657ba241256231efca32828a5822f9.tar.bz2
Fix lzma uncompress call (image_start wrongly used instead image_len)
Signed-off-by: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
-rw-r--r--common/cmd_bootm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 19257bb..897e9f6 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);