diff options
Diffstat (limited to 'tools/imx8image.c')
-rw-r--r-- | tools/imx8image.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/imx8image.c b/tools/imx8image.c index 03debe547e..019b875773 100644 --- a/tools/imx8image.c +++ b/tools/imx8image.c @@ -666,8 +666,10 @@ static int get_container_image_start_pos(image_t *image_stack, uint32_t align) } ret = fread(&header, sizeof(header), 1, fd); - if (ret != 1) + if (ret != 1) { printf("Failure Read header %d\n", ret); + exit(EXIT_FAILURE); + } fclose(fd); |