futility: check flashrom return code and bail with error
During the flashrom initialization sequence the return code is not
being checked therefore there's a potential that the code moves
forward with read/write operation even with outstanding error.
This CL checks the return code and bail with error.
TEST=Test futility update with multiple instances of flashrom running.
Signed-off-by: YH Lin <firstname.lastname@example.org>
Reviewed-by: Tim Wawrzynczak <email@example.com>
Reviewed-by: Edward O'Callaghan <firstname.lastname@example.org>
Reviewed-by: Hung-Te Lin <email@example.com>
1 file changed