spl: atf: Fix uninitialized pointer to bl31_image_info
[project/bcm63xx/u-boot.git] / common / spl / spl_atf.c
index cddab6a73584e3565c2c8a177160fb1351418065..4715f9d3719faced434616c5bd651563cf6be2f9 100644 (file)
@@ -45,6 +45,7 @@ static struct bl31_params *bl2_plat_get_bl31_params(uintptr_t bl33_entry)
        SET_PARAM_HEAD(bl2_to_bl31_params, ATF_PARAM_BL31, ATF_VERSION_1, 0);
 
        /* Fill BL31 related information */
+       bl2_to_bl31_params->bl31_image_info = &bl31_params_mem.bl31_image_info;
        SET_PARAM_HEAD(bl2_to_bl31_params->bl31_image_info,
                       ATF_PARAM_IMAGE_BINARY, ATF_VERSION_1, 0);