Skip to content

Commit 8ff6b67

Browse files
committed
bootutil: Use boot_state_init instead of boot_state_clear
Initialize boot_loader_state with boot_state init, then clean it up, after use, with boot_state_clear. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
1 parent dd4b01f commit 8ff6b67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

boot/bootutil/src/loader.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2446,9 +2446,12 @@ boot_go(struct boot_rsp *rsp)
24462446
{
24472447
FIH_DECLARE(fih_rc, FIH_FAILURE);
24482448

2449-
boot_state_clear(NULL);
2449+
boot_state_init(&boot_data);
24502450

24512451
FIH_CALL(context_boot_go, fih_rc, &boot_data, rsp);
2452+
2453+
boot_state_clear(&boot_data);
2454+
24522455
FIH_RET(fih_rc);
24532456
}
24542457

0 commit comments

Comments
 (0)