diff options
| author | Tom Rini <[email protected]> | 2023-02-01 09:30:52 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-02-01 09:30:52 -0500 |
| commit | 3592a61fa8b4b55c0fab9a75bfb9ac3c73fdcbc0 (patch) | |
| tree | 46d89652f8a6235ed0cdcd6473be02c98269395a /tools | |
| parent | 73a3f5139182a0389d505bf29b0ad4bc29424cf8 (diff) | |
| parent | f42c0726fd02e978a524ab35b060382d317ef438 (diff) | |
Merge tag 'u-boot-imx-20230201' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
For 2023.04
-----------
- several conversion to DM_SERIAL and DM_I2C
- fixes for Toradex boards
- PSCI
CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/14965
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/imx8image.c | 1 | ||||
| -rw-r--r-- | tools/imx8mimage.c | 1 | ||||
| -rw-r--r-- | tools/imximage.c | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/tools/imx8image.c b/tools/imx8image.c index 01e14869114..395d5c64bdf 100644 --- a/tools/imx8image.c +++ b/tools/imx8image.c @@ -279,6 +279,7 @@ static uint32_t parse_cfg_file(image_t *param_stack, char *name) } } + fclose(fd); return 0; } diff --git a/tools/imx8mimage.c b/tools/imx8mimage.c index 35d0a92bfdf..3ca79d865aa 100644 --- a/tools/imx8mimage.c +++ b/tools/imx8mimage.c @@ -207,6 +207,7 @@ static uint32_t parse_cfg_file(char *name) } } + fclose(fd); return 0; } diff --git a/tools/imximage.c b/tools/imximage.c index 5c23fba3b12..354ee34c14a 100644 --- a/tools/imximage.c +++ b/tools/imximage.c @@ -460,7 +460,7 @@ static void print_hdr_v1(struct imx_header *imx_hdr) uint32_t size, length, ver; size = dcd_v1->preamble.length; - if (size > (MAX_HW_CFG_SIZE_V1 * sizeof(dcd_type_addr_data_t))) { + if (size >= (MAX_HW_CFG_SIZE_V1 * sizeof(dcd_type_addr_data_t))) { fprintf(stderr, "Error: Image corrupt DCD size %d exceed maximum %d\n", (uint32_t)(size / sizeof(dcd_type_addr_data_t)), |
