Skip to content
Commit 86dc36ed authored by Thomas Altenbach's avatar Thomas Altenbach Committed by Jamie McCrae
Browse files

boot_serial: Avoid re-initializing state in boot_image_validate_encrypted



A valid bootloader state was needed to validate encrypted images, so the
boot_image_validate_encrypted (only called from bs_list and bs_set) was
allocating and initializing a minimal state with the required content.
Now bs_list and bs_set have a valid bootloader state, the latter can be
given to boot_image_validate_encrypted, avoiding two bootloader state
allocations.

Signed-off-by: default avatarThomas Altenbach <thomas.altenbach@legrand.com>
(cherry picked from commit 07222c19)
parent a5d59b4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment