Skip to content

Commit b0c7df9

Browse files
committed
boot: bootutil: Fix usage of flash_area object
Fixes directly accessing an element of this object with one of the helper functions Signed-off-by: Jamie McCrae <[email protected]>
1 parent f523c60 commit b0c7df9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/bootutil/src/bootutil_misc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ boot_status_off(const struct flash_area *fap)
173173
elem_sz = flash_area_align(fap);
174174

175175
#if MCUBOOT_SWAP_USING_SCRATCH
176-
if (fap->fa_id == FLASH_AREA_IMAGE_SCRATCH) {
176+
if (flash_area_get_id(fap) == FLASH_AREA_IMAGE_SCRATCH) {
177177
off_from_end = boot_scratch_trailer_sz(elem_sz);
178178
} else {
179179
#endif

0 commit comments

Comments
 (0)