Skip to content
Snippets Groups Projects
Commit 9cff2d1e authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

mkimage: Fix munmap() call when importing data


The munmap() call unmaps the wrong memory buffer. Fix it.

Reported-by: Coverity (CID: 138505)
Reported-by: Coverity (CID: 138495)
Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent a6f70a3d
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment