
24 Apr
2020
24 Apr
'20
7:12 p.m.
On Sat, Apr 18, 2020 at 01:59:10AM -0700, Bin Meng wrote:
From: Lihua Zhao lihua.zhao@windriver.com
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
Applied to u-boot/master, thanks!
--
Tom