[PATCH] sandbox: Close file after mmaping it
Simon Glass
sjg at chromium.org
Sat Nov 4 23:57:43 CET 2023
On Sat, 4 Nov 2023 at 19:57, Sean Anderson <seanga2 at gmail.com> wrote:
>
> After opening pathname, we must close ifd once we are done with it.
>
> Fixes: b9274095c2c ("sandbox: Add a way to map a file into memory")
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
> arch/sandbox/cpu/os.c | 15 ++++++++++-----
> 1 file changed, 10 insertions(+), 5 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list