summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/fit_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c
index 3ecc88f..2c8d92f 100644
--- a/tools/fit_image.c
+++ b/tools/fit_image.c
@@ -517,7 +517,7 @@ static int fit_import_data(struct image_tool_params *params, const char *fname)
}
}
- munmap(fdt, sbuf.st_size);
+ munmap(old_fdt, sbuf.st_size);
close(fd);
/* Pack the FDT and place the data after it */