Skip to content

Commit 894ec54

Browse files
committed
[nrf noup] bootutil: Use boot_state_init/clear in loader manifest
Now boot_state_init is used for state initialization and boot_state_clear to clean it after it is no longer need. Signed-off-by: Dominik Ermel <[email protected]>
1 parent f308c37 commit 894ec54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

boot/bootutil/src/loader_manifest_xip.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,12 @@ boot_go(struct boot_rsp *rsp)
646646
{
647647
FIH_DECLARE(fih_rc, FIH_FAILURE);
648648

649-
boot_state_clear(NULL);
649+
boot_state_init(&boot_data);
650650

651651
FIH_CALL(context_boot_go, fih_rc, &boot_data, rsp);
652+
653+
boot_state_clear(&boot_data);
654+
652655
FIH_RET(fih_rc);
653656
}
654657

0 commit comments

Comments
 (0)