Skip to content
Commit 800868a9 authored by Michal Kozikowski's avatar Michal Kozikowski Committed by Dominik Ermel
Browse files

bootutil: swap_scratch: Fix scratch scrambling



This commit fixes the scrambling of the scratch area after
persisting a trailer to the primary slot. Previous use of
boot_erase_region() didn't guarantee that the scratch area is
scrambled, as it only erases memory for devices that selects
CONFIG_MCUBOOT_STORAGE_WITH_ERASE.

Signed-off-by: default avatarMichal Kozikowski <michal.kozikowski@nordicsemi.no>
parent 6b70855e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment