[U-Boot] [PATCH] tools: mkimage: Call fclose in error path
Simon Glass
sjg at chromium.org
Mon Dec 26 06:24:00 CET 2016
On 20 December 2016 at 21:58, Michal Simek <michal.simek at xilinx.com> wrote:
> This patch is fixing missing fclose() calls
> in error patch introduced by:
> "tools: mkimage: Use fstat instead of stat to avoid malicious hacks"
> (sha1: ebe0f53f48e8f9ecc823e533a85b05c13638c350)
>
> Reported-by: Coverity (CID: 155064, 155065)
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
> tools/zynqimage.c | 8 ++++++--
> tools/zynqmpimage.c | 8 ++++++--
> 2 files changed, 12 insertions(+), 4 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
Either patch is fine.
More information about the U-Boot
mailing list