commit | 4536ef8f2c53c19a436756f94d1166cbebcc6c2c | [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 | 112ee0b8db9ccf8e6503f58b9efc00a3576c0527 [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>