Skip to content
Commit fe8f9fc0 authored by Artur Hadasz's avatar Artur Hadasz Committed by Dominik Ermel
Browse files

bootutil: Fixed security counter overflow detected to late



This commit fixes the issue, occuring when the maximum amount of
security counter updates has been reached.

This fact was only detected after a permament update already
happened - the updated firmware was unable to boot, as it
failed when trying to update the security counter after
the permament swap.

This commit adds the check if the security counter can be
updated (i. e. free security counter slots are still available)
before the swap is performed, fixing the issue.

Signed-off-by: default avatarArtur Hadasz <artur.hadasz@nordicsemi.no>
parent 42fc9cd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment