]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: mkimage: fix sfspl_image_extract_subimage()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 24 Oct 2023 07:26:38 +0000 (09:26 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 30 Oct 2023 19:32:49 +0000 (15:32 -0400)
commit54024c8021ab9ca50927e2c08df1bc95dd63d3f1
treebec686ba8c04a15084dfe3365c4a066cac928393
parent482a0f17649f4fbae0f1aa02582cd27a955bf612
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>
tools/sfspl.c