commit | 3fc85a782a3d46fcb32bfb93829d2424d696c4d3 | [log] [tgz] |
---|---|---|
author | Lihua Zhao <lihua.zhao@windriver.com> | Sat Apr 18 01:59:10 2020 -0700 |
committer | Tom Rini <trini@konsulko.com> | Fri Apr 24 10:51:56 2020 -0400 |
tree | ee7edd630917ca017fd28223fe4013bfded6d228 | |
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>