From 92de35659cbd3b7f534470bb25f12b740be25fad Mon Sep 17 00:00:00 2001 From: Juan Castillo Date: Thu, 13 Nov 2014 17:04:33 +0000 Subject: [PATCH] Bug fix: initialize bl30_image_info fields before use This patch initializes the version field in the bl30_image_info structure when loading BL30. This initialization must be done before calling load_image(). Fixes ARM-software/tf-issues#274 Change-Id: I74a05167d66fff51d257ad611abc7b5436e5d912 --- bl2/bl2_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bl2/bl2_main.c b/bl2/bl2_main.c index a73946ed..b7e2cff4 100644 --- a/bl2/bl2_main.c +++ b/bl2/bl2_main.c @@ -61,6 +61,7 @@ static int load_bl30(void) */ INFO("BL2: Loading BL3-0\n"); bl2_plat_get_bl30_meminfo(&bl30_mem_info); + bl30_image_info.h.version = VERSION_1; e = load_image(&bl30_mem_info, BL30_IMAGE_NAME, BL30_BASE, -- 2.30.2