Sorry again, but I cannot use git-send-email. This is the corrected patch.

Best regards,

luigi

Il domenica 14 settembre 2008 00:58:10 Wolfgang Denk ha scritto:
> Dear "Luigi 'Comio' Mantellini",
>
> In message <[EMAIL PROTECTED]> you wrote:
> > I noticed a typo in the lzma uncompress invocation (image_start
> > instead=20 image_len).
> >
> > This patch correct the mistake.
>
> Please add your Signed-off-by: line...
>
> Best regards,
>
> Wolfgang Denk

-- 

Luigi Mantellini
R&D - Software
Industrie Dial Face S.p.A.
Via Canzo, 4
20068 Peschiera Borromeo (MI), Italy
Tel.:  +39 02 5167 2813
Fax:   +39 02 5167 2459
Email: [EMAIL PROTECTED]

From 565ecc8ff0a21a9a9f3381c0bfaea629598b7c00 Mon Sep 17 00:00:00 2001
From: Luigi 'Comio' Mantellini <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
---
 common/cmd_bootm.c |    2 +-
 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);
-- 
1.5.4.3

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to