]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: Close file after mmaping it
authorSean Anderson <seanga2@gmail.com>
Sat, 4 Nov 2023 19:57:33 +0000 (15:57 -0400)
committerSimon Glass <sjg@chromium.org>
Wed, 15 Nov 2023 03:04:01 +0000 (20:04 -0700)
commitf6d76e68784591ee32c173a08535c4dff4a76a1e
tree57a63137f0c6bf88359fa5125ea219defc793147
parent2c61c0eb14289cbd94bff51c175f2410418d64d0
sandbox: Close file after mmaping it

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@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c