diff options
author | Marco Felsch <m.felsch@pengutronix.de> | 2023-10-17 16:51:27 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-10-24 11:01:58 +0200 |
commit | 6f8b0cd6918fdceecc6cddce4f36dab5d3c21458 (patch) | |
tree | 32e8d9157f30367b6e17cce694f1ce464c959e50 /scripts | |
parent | 692fcd6d0513096a47987411669510475255b7be (diff) | |
download | barebox-6f8b0cd6918fdceecc6cddce4f36dab5d3c21458.tar.gz barebox-6f8b0cd6918fdceecc6cddce4f36dab5d3c21458.tar.xz |
scripts: imx-image: add missing close()
Close the csfbin file after we read it into buf.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.barebox.org/20231017145131.3069283-26-m.felsch@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/imx/imx-image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index 8c4cc771ee..4a0a44b3a9 100644 --- a/scripts/imx/imx-image.c +++ b/scripts/imx/imx-image.c @@ -796,6 +796,8 @@ static int hab_sign(struct config_data *data, const char *csfcmds, xread(fd, buf, s.st_size); + close(fd); + /* * For i.MX8M, write into the reserved CSF section */ |