Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion avb/libavb_ab/avb_ab_flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ AvbABFlowResult avb_ab_flow(AvbABOps* ab_ops,
/* ... and decrement tries remaining, if applicable. */
if (!ab_data.slot_info[slot_index_to_boot].successful_boot &&
ab_data.slot_info[slot_index_to_boot].tries_remaining > 0) {
ab_data.slot_info[slot_index_to_boot].tries_remaining -= 1;
ab_data.slot_info[slot_index_to_boot].tries_remaining = 5;
}

out:
Expand Down
4 changes: 2 additions & 2 deletions libkernelflinger/slot.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ EFI_STATUS slot_boot(enum boot_target target)
if (!get_slot_fallback())
return EFI_SUCCESS;

boot_ctrl.recovery_tries_remaining--;
boot_ctrl.recovery_tries_remaining=5;
return write_boot_ctrl();
}

Expand All @@ -562,7 +562,7 @@ EFI_STATUS slot_boot(enum boot_target target)
}

if (get_slot_fallback())
slot->tries_remaining--;
slot->tries_remaining=5;
boot_ctrl.recovery_tries_remaining = MAX_RETRIES;

return write_boot_ctrl();
Expand Down