]> Git Repo - J-u-boot.git/blobdiff - arch/arm/mach-imx/hab.c
imx: hab: Enable hab.c to authenticate additional images in open configuration
[J-u-boot.git] / arch / arm / mach-imx / hab.c
index bd00d4a458d3d0bd52a4d6237f82847e8db186a6..01ddfab6996a41417e35a56a63ab9e52562828a0 100644 (file)
@@ -794,10 +794,8 @@ int imx_hab_authenticate_image(uint32_t ddr_start, uint32_t image_size,
        struct ivt *ivt;
        enum hab_status status;
 
-       if (!imx_hab_is_enabled()) {
+       if (!imx_hab_is_enabled())
                puts("hab fuse not enabled\n");
-               return 0;
-       }
 
        printf("\nAuthenticate image from DDR location 0x%x...\n",
               ddr_start);
@@ -896,7 +894,7 @@ hab_exit_failure_print_status:
 
 hab_authentication_exit:
 
-       if (load_addr != 0)
+       if (load_addr != 0 || !imx_hab_is_enabled())
                result = 0;
 
        return result;
This page took 0.022912 seconds and 4 git commands to generate.