u-boot/arch
Heinrich Schuchardt 2c3fa4b8ad sandbox: don't call os_close with invalid file descriptor
If open() fails it returns -1. Calling close() with this value
makes no sense. Return -EIO instead.

Addresses-Coverity-ID: 185828 Improper use of negative value
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fixes: 566bf3a869 ("sandbox: Add a function to read a host file")
Reviewed-by: Sean Anderson <seanga2@gmail.com>
2024-04-17 17:06:16 -06:00
..
arc Merge patch series "pxe: Allow extlinux booting without CMDLINE enabled" 2024-04-10 17:06:27 -06:00
arm arm: mach-k3: security: Lower verbosity of cert message for GP 2024-04-17 17:06:13 -06:00
m68k Merge patch series "pxe: Allow extlinux booting without CMDLINE enabled" 2024-04-10 17:06:27 -06:00
microblaze Merge patch series "pxe: Allow extlinux booting without CMDLINE enabled" 2024-04-10 17:06:27 -06:00
mips Merge patch series "pxe: Allow extlinux booting without CMDLINE enabled" 2024-04-10 17:06:27 -06:00
nios2 Merge patch series "pxe: Allow extlinux booting without CMDLINE enabled" 2024-04-10 17:06:27 -06:00
powerpc Merge patch series "pxe: Allow extlinux booting without CMDLINE enabled" 2024-04-10 17:06:27 -06:00
riscv Merge patch series "pxe: Allow extlinux booting without CMDLINE enabled" 2024-04-10 17:06:27 -06:00
sandbox sandbox: don't call os_close with invalid file descriptor 2024-04-17 17:06:16 -06:00
sh Merge patch series "pxe: Allow extlinux booting without CMDLINE enabled" 2024-04-10 17:06:27 -06:00
x86 Merge patch series "Resolve issues with booting distros on x86" 2024-04-10 20:01:42 -06:00
xtensa Merge patch series "pxe: Allow extlinux booting without CMDLINE enabled" 2024-04-10 17:06:27 -06:00
.gitignore
Kconfig Merge patch series "Complete decoupling of zboot logic from commands" 2024-04-10 13:49:35 -06:00
Kconfig.nxp LFU-544: Kconfig.nxp: Fixed secure boot on LS-CH2 platforms 2023-07-06 13:04:56 +08:00
u-boot-elf.lds