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:Artur Hadasz <artur.hadasz@nordicsemi.no> (cherry picked from commit fe8f9fc0)
Loading
Please sign in to comment