diff options
author | Lihua Zhao <lihua.zhao@windriver.com> | 2020-04-18 01:59:10 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-24 10:51:56 -0400 |
commit | 3fc85a782a3d46fcb32bfb93829d2424d696c4d3 (patch) | |
tree | ee7edd630917ca017fd28223fe4013bfded6d228 /include/configs/embestmx6boards.h | |
parent | 3b32cf096bd6b1d8871ecaddb4250756242fb5f9 (diff) |
mkimage: fit: Unmmap the memory before closing fd in fit_import_data()
Without calling munmap(), the follow-up call to open() the same file
with a flag O_TRUNC seems not to cause any issue on Linux, but it fails
on Windows with error like below:
Can't open kernel_fdt.itb.tmp: Permission denied
Fix this by unmapping the memory before closing fd in fit_import_data().
Signed-off-by: Lihua Zhao <lihua.zhao@windriver.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Diffstat (limited to 'include/configs/embestmx6boards.h')
0 files changed, 0 insertions, 0 deletions