diff --git a/boot/image-board.c b/boot/image-board.c index 7dd0c32e6e1..c602832249e 100644 --- a/boot/image-board.c +++ b/boot/image-board.c @@ -1126,7 +1126,8 @@ fallback: } /* get script subimage data address and length */ - if (fit_image_get_data(fit_hdr, noffset, &fit_data, &fit_len)) { + if (fit_image_get_data_and_size(fit_hdr, noffset, + &fit_data, &fit_len)) { puts("Could not find script subimage data\n"); return 1; }