commit | b828665b2b6f1ae391a62e4cfb4ac7a2baa5e5b2 | [log] [tgz] |
---|---|---|
author | Tom Rini <trini@konsulko.com> | Tue Sep 26 22:14:44 2017 -0400 |
committer | Tom Rini <trini@konsulko.com> | Fri Oct 06 11:28:22 2017 -0400 |
tree | 6a863bfe581b8c9d0b970b992b3499c697db0adf | |
parent | 9ee016770232e3f4c3992cdb25ef8397d9db0fc6 [diff] |
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>