commit | 13f79ed693b4217b3648f5ad4d329f23fc06582c | [log] [tgz] |
---|---|---|
author | Roman Okhrimenko <roman.okhrimenko@infineon.com> | Thu Mar 11 19:05:41 2021 +0200 |
committer | Roman Okhrimenko <roman.okhrimenko@infineon.com> | Fri Apr 16 10:45:39 2021 +0300 |
tree | 075158fcb891ab896043fc7023bf53dc45db7934 | |
parent | cdee0b788586179de93b6ed22db24108fa9b1bd5 [diff] [blame] |
Implement new swap scheme for devices with large erase size using scratch with status area
diff --git a/boot/bootutil/src/image_validate.c b/boot/bootutil/src/image_validate.c index f066add..18967c5 100644 --- a/boot/bootutil/src/image_validate.c +++ b/boot/bootutil/src/image_validate.c
@@ -490,6 +490,7 @@ fih_rc = fih_int_encode_zero_equality(img_security_cnt < fih_int_decode(security_cnt)); if (fih_not_eq(fih_rc, FIH_SUCCESS)) { + /* The image's security counter is not accepted. */ goto out; }