[U-Boot] tools/fit_image.c: Update some return code paths

Tom Rini trini at konsulko.com
Sat Oct 7 13:09:21 UTC 2017


On Tue, Sep 26, 2017 at 10:14:44PM -0400, Tom Rini wrote:

> Coverity has found some problems with the return paths in parts of this
> code.  We have a case where we were going to the wrong part of the
> unwind (open() failed so we cannot close the fd), a case where we were
> only free()ing our buf on the error path and finally a case where we did
> not munmap in the failure path.
> 
> Reported-by: Coverity (CID: 138492, 138495, 143064)
> Signed-off-by: Tom Rini <trini at konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171007/e34fe500/attachment.sig>


More information about the U-Boot mailing list