Heinrich Schuchardt 54024c8021 tools: mkimage: fix sfspl_image_extract_subimage()
Do not leak file descriptor if writing fails.
Correct the error text if opening a file fails.

Addresses-Coverity-ID: 467054 Resource leaks
Fixes: 64fd30d367a1 ("tools: mkimage: Add StarFive SPL image support")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-10-30 15:32:49 -04:00
..
2023-10-02 10:55:44 -04:00
2023-10-02 10:55:44 -04:00
2023-07-07 16:25:56 -04:00
2023-10-04 10:49:30 -04:00
2022-12-08 09:29:02 -05:00
2023-01-27 12:51:26 -05:00
2022-01-28 17:58:41 -05:00
2023-10-04 09:25:22 -06:00