[PATCH 2/2] uimage: fix: fill size when no compression is used

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Mon Aug 12 06:09:23 EDT 2013


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 common/uimage.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/uimage.c b/common/uimage.c
index ed93a4b..f6b6990 100644
--- a/common/uimage.c
+++ b/common/uimage.c
@@ -478,6 +478,7 @@ void *uimage_load_to_buf(struct uimage_handle *handle, int image_no,
 			free(buf);
 			return NULL;
 		}
+		size = ihd->len;
 		goto out;
 	}
 
-- 
1.8.4.rc1




More information about the barebox mailing list