
From: Simon Glass <sjg@chromium.org> There is no point in setting the architecture if the image cannot be used. Move the check a little higher within fit_image_load(). Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v1) boot/image-fit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boot/image-fit.c b/boot/image-fit.c index 9d99bfd4d82..d4901d8e6d2 100644 --- a/boot/image-fit.c +++ b/boot/image-fit.c @@ -2369,13 +2369,13 @@ int fit_image_load(struct bootm_headers *images, ulong addr, } } - fit_image_get_arch(fit, noffset, &os_arch); - images_set_arch(images, os_arch); - ret = check_allowed(fit, noffset, image_type, arch, bootstage_id); if (ret) return ret; + fit_image_get_arch(fit, noffset, &os_arch); + images_set_arch(images, os_arch); + ret = obtain_data(fit, noffset, prop_name, bootstage_id, &buf, &len); if (ret) return ret; -- 2.43.0