Re: [PATCH 4/8] tools: prelink-riscv: Unmap the ELF image when done

2023-04-07 Thread Rick Chen
> From: Bin Meng 
> Sent: Thursday, March 30, 2023 12:20 PM
> To: u-boot@lists.denx.de
> Cc: Leo Yu-Chi Liang(梁育齊) ; Rick Jian-Zhi Chen(陳建志) 
> 
> Subject: [PATCH 4/8] tools: prelink-riscv: Unmap the ELF image when done
>
> The codes forget to call munmap() to unmap the ELF image that was mapped by 
> previous mmap().
>
> Signed-off-by: Bin Meng 
> ---
>
>  tools/prelink-riscv.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Rick Chen 


Re: [PATCH 4/8] tools: prelink-riscv: Unmap the ELF image when done

2023-04-01 Thread Simon Glass
On Fri, 31 Mar 2023 at 01:37, Bin Meng  wrote:
>
> The codes forget to call munmap() to unmap the ELF image that was
> mapped by previous mmap().
>
> Signed-off-by: Bin Meng 
> ---
>
>  tools/prelink-riscv.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass 


[PATCH 4/8] tools: prelink-riscv: Unmap the ELF image when done

2023-03-30 Thread Bin Meng
The codes forget to call munmap() to unmap the ELF image that was
mapped by previous mmap().

Signed-off-by: Bin Meng 
---

 tools/prelink-riscv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/prelink-riscv.c b/tools/prelink-riscv.c
index b0467949eb..43d6412ee9 100644
--- a/tools/prelink-riscv.c
+++ b/tools/prelink-riscv.c
@@ -118,5 +118,7 @@ int main(int argc, const char *const *argv)
prelink_le32(data);
}
 
+   munmap(data, st.st_size);
+
return 0;
 }
-- 
2.34.1