Skip to content

Commit e96f21f

Browse files
committed
bootloader: bl_validation: Fix checking wrong offset
Fixes checking an offset using a wrong variable Signed-off-by: Jamie McCrae <[email protected]>
1 parent 2888675 commit e96f21f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bootloader/bl_validation/bl_validation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ OFFSET_CHECK(struct fw_validation_info, address, 12);
152152
OFFSET_CHECK(struct fw_validation_info, hash, 16);
153153
OFFSET_CHECK(struct fw_validation_info, public_key, (16 + CONFIG_SB_HASH_LEN));
154154
OFFSET_CHECK(struct fw_validation_info, signature, (16 + CONFIG_SB_HASH_LEN
155-
+ CONFIG_SB_SIGNATURE_LEN));
155+
+ CONFIG_SB_PUBLIC_KEY_LEN));
156156

157157
/* Can be used to make the firmware discoverable in other locations, e.g. when
158158
* searching backwards. This struct would typically be constructed locally, so

0 commit comments

Comments
 (0)