mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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 <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
a6f70a3d14
commit
9cff2d1e39
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue