diff options
author | Tom Rini <trini@konsulko.com> | 2017-09-26 22:14:44 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-10-06 11:28:22 -0400 |
commit | 3c2dff5490831f85f06aa78aad5ef537b661cecf (patch) | |
tree | 6a863bfe581b8c9d0b970b992b3499c697db0adf /fs | |
parent | 146dda391126d4f199c7692f2342efcc34b45ebd (diff) | |
download | u-boot-3c2dff5490831f85f06aa78aad5ef537b661cecf.tar.gz |
tools/fit_image.c: Update some return code paths
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@konsulko.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions