[PATCH 2/3] mkimage: fit: Unmmap the memory before closing fd in fit_import_data()

Tom Rini trini at konsulko.com
Fri Apr 24 19:12:44 CEST 2020


On Sat, Apr 18, 2020 at 01:59:10AM -0700, Bin Meng wrote:

> From: Lihua Zhao <lihua.zhao at 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 at windriver.com>
> Signed-off-by: Bin Meng <bin.meng at windriver.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200424/9d19af36/attachment.sig>


More information about the U-Boot mailing list