coreboot/util/cbfstool
Aaron Durbin b521867ee2 cbfstool: check potential microcode update earlier
The update-fit command takes in a parameter for number of slots
in the FIT table. It then processes the microcobe blob in cbfs
adding those entries to the FIT table. However, the tracking of
the number of mircocode updates was incremented before validating
the update. Therefore, move the sanity checking before an increment
of the number of updates.

BUG=chrome-os-partner:19035
BRANCH=none
TEST=emerge-fox_wtm2 chromeos-coreboot-fox and inspected microcode
     FIT entries.

Change-Id: Ie8290f53316b251e500b88829fdcf9b5735c1b0e
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/50319
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
2013-05-07 14:58:30 -07:00
..
lzma cbfstool: completely initialize input and output streams 2013-04-08 21:36:37 +02:00
cbfs-mkpayload.c
cbfs-mkstage.c
cbfs.h
cbfs_image.c
cbfs_image.h
cbfstool.c
coff.h
common.c
common.h
compress.c cbfstool: Replace C++ code with C code 2013-04-03 02:35:28 +02:00
elf.h
EXAMPLE
fit.c cbfstool: check potential microcode update earlier 2013-05-07 14:58:30 -07:00
fit.h
fv.h
Makefile cbfstool: Replace C++ code with C code 2013-04-03 02:35:28 +02:00
Makefile.inc cbfstool: Replace C++ code with C code 2013-04-03 02:35:28 +02:00
swab.h