coreboot-kgpe-d16/util
Richard Spiegel 7b89a28149 util/amdfwtool/amdfwtool.c: Check fstat return
Funtion fstat will return -1 if there's any error, 0 if successful.
Check that fstat return is equal to 0, print error message and exit if
not 0.

This fixes CIDs 1353018 and 1353020

BUG=b:72062481
TEST=Build no errors

Change-Id: I83284d9125c75a29471f213f88b9181d5edba2e6
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/23827
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2018-02-22 09:59:40 +00:00
..
abuild
acpi
amdfwtool util/amdfwtool/amdfwtool.c: Check fstat return 2018-02-22 09:59:40 +00:00
amdtools
archive
arm_boot_tools/mksunxiboot
autoport autoport: Don't do writes to FD in romstage 2018-01-30 23:17:58 +00:00
bimgtool
bincfg util/bincfg: don't use fp shared variable 2018-01-23 05:21:48 +00:00
board_status board_status: Make board_status more friendly for local usage 2018-02-16 22:40:20 +00:00
broadcom util/broadcom/secimage: Add distclean target 2018-02-10 23:49:58 +00:00
cbfstool drivers/mrc_cache: Always generate an FMAP region 2018-01-20 16:11:44 +00:00
cbmem util/cbmem: Re-order regex for "cbmem -1" 2018-02-19 22:00:16 +00:00
checklist
chromeos
crossgcc buildgcc: Add patch to work around Musl libc issue 2018-01-15 01:15:27 +00:00
docker util/docker/coreboot-sdk: Add libftdi1-dev 2018-01-31 16:44:25 +00:00
dtd_parser
ectool
exynos
futility
fuzz-tests
genbuild_h util/genbuild_h: Add gitfile support 2018-01-23 05:33:02 +00:00
genprof
gitconfig util/gitconfig: Replace printf with heredoc 2018-01-23 05:22:40 +00:00
hugo
ifdfake
ifdtool util/ifdtool: Fix region limitation check 2017-10-22 01:51:17 +00:00
intelmetool util/intelmetool: Fix some platforms 2017-11-30 17:19:08 +00:00
inteltool inteltool: Add Cougar- and Pantherpoint PCH PCI IDs for SPI 2018-02-06 16:11:45 +00:00
intelvbttool
ipqheader util/*: Fix final newlines in scripts 2018-01-23 05:17:44 +00:00
k8resdump util/*: don't strip executables 2017-10-29 08:48:56 +00:00
kbc1126
kconfig
lint util/lint/checkpatch.pl: Untaint filename 2018-01-29 15:34:59 +00:00
marvell
me_cleaner util/*: Fix final newlines in scripts 2018-01-23 05:17:44 +00:00
mma
msrtool
mtkheader
nvidia
nvramtool nvramtool: Fix message when option table is not found 2018-02-06 15:29:30 +00:00
optionlist
post
release util/release: Improve git worktree checks 2018-01-17 16:54:22 +00:00
riscvtools util: make-spike-elf.sh: Fix busybox mktemp compatibility 2018-02-20 23:14:06 +00:00
rockchip
romcc
sconfig sconfig: Add a new mmio resource type 2018-01-25 16:50:17 +00:00
scripts
showdevicetree sconfig: Add a new mmio resource type 2018-01-25 16:50:17 +00:00
spkmodem_recv
superiotool util/superiotool: dump VT1211 registers 2018-01-15 00:42:43 +00:00
testing util/broadcom/secimage: Add HMAC test 2018-02-06 16:14:33 +00:00
uio_usbdebug
vgabios
viatool
xcompile