From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 24 Apr 2020 13:12:44 -0400 Subject: [PATCH 2/3] mkimage: fit: Unmmap the memory before closing fd in fit_import_data() In-Reply-To: <1587200351-12590-2-git-send-email-bmeng.cn@gmail.com> References: <1587200351-12590-1-git-send-email-bmeng.cn@gmail.com> <1587200351-12590-2-git-send-email-bmeng.cn@gmail.com> Message-ID: <20200424171244.GC4555@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Apr 18, 2020 at 01:59:10AM -0700, Bin Meng wrote: > From: Lihua Zhao > > 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 > Signed-off-by: Bin Meng 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: