Commit 4f3d019
authored
boot: bootutil: avoid full erase on BOOT_MAGIC_BAD in boot_set_next
Previously, boot_set_next() would perform a full slot erase when
BOOT_MAGIC_BAD was detected. This is unnecessary, as boot_validate_slot()
will later handle the invalid image appropriately by invoking
boot_scramble_slot().1 parent e8b2236 commit 4f3d019
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
| 576 | + | |
580 | 577 | | |
581 | 578 | | |
582 | 579 | | |
| |||
0 commit comments