aboot: mdtp: Address security review
Address security review comments. The security review addresses
multiple security related issues.
Change-Id: Id20861435725de378a51c1034c2b0ced32ac547b
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index ca48092..88e192d 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -3010,6 +3010,12 @@
normal_boot:
if (!boot_into_fastboot)
{
+#ifdef MDTP_SUPPORT
+ /* Go through Firmware Lock verification before continue with boot process */
+ mdtp_fwlock_verify_lock();
+ display_image_on_screen();
+#endif /* MDTP_SUPPORT */
+
if (target_is_emmc_boot())
{
if(emmc_recovery_init())
@@ -3027,12 +3033,6 @@
}
}
-#ifdef MDTP_SUPPORT
- /* Go through Firmware Lock verification before continue with boot process */
- mdtp_fwlock_verify_lock();
- display_image_on_screen();
-#endif /* MDTP_SUPPORT */
-
boot_linux_from_mmc();
}
else