Commit 0d0911a3 authored by Marek Vasut's avatar Marek Vasut

mxssb: Always close the output filename

Make sure the output filename is closed when generating the SB image.
This patch fixes an oversight that got in during the rework.
Signed-off-by: Marek Vasut's avatarMarek Vasut <marex@denx.de>
parent cca1aa01
......@@ -410,6 +410,7 @@ static int sb_write_image(struct sb_image_ctx *ictx)
if (ret != sizeof(ictx->digest))
goto err;
fclose(fp);
return 0;
err:
fprintf(stderr, "Failed to write output file!\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment