[PATCH] sandbox: Close file after mmaping it

Simon Glass sjg at chromium.org
Wed Nov 15 14:16:54 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>

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list