Skip to content

Commit

Permalink
revert validate prim slot from ram boot
Browse files Browse the repository at this point in the history
Signed-off-by: INFINEON\DovhalA <Artem.Dovhal@infineon.com>
  • Loading branch information
DOAR-Infineon committed Jul 11, 2023
1 parent 7265a77 commit 3aaafe1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions boot/bootutil/src/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ boot_rom_address_check(struct boot_loader_state *state)
* FIH_NO_BOOTABLE_IMAGE if no bootloable image was found
* FIH_FAILURE on any errors
*/
fih_ret
static fih_ret
boot_validate_slot(struct boot_loader_state *state, int slot,
struct boot_status *bs)
{
Expand Down Expand Up @@ -3181,7 +3181,7 @@ boot_load_and_validate_images(struct boot_loader_state *state)
continue;
}
#endif /* MCUBOOT_RAM_LOAD */
#ifdef MCUBOOT_VALIDATE_PRIMARY_SLOT

fih_ret fih_rc;
FIH_CALL(boot_validate_slot, fih_rc, state, active_slot, NULL);
if (FIH_NOT_EQ(fih_rc, FIH_SUCCESS)) {
Expand All @@ -3193,7 +3193,7 @@ boot_load_and_validate_images(struct boot_loader_state *state)
state->slot_usage[BOOT_CURR_IMG(state)].active_slot = NO_ACTIVE_SLOT;
continue;
}
#endif

/* Valid image loaded from a slot, go to next image. */
break;
}
Expand Down

0 comments on commit 3aaafe1

Please sign in to comment.