diff options
author | Evan Benn <evanbenn@chromium.org> | 2023-01-12 09:34:17 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-01-13 14:36:45 +0000 |
commit | ea185f1c07a88e96ad7bd664a97582559dc6e53f (patch) | |
tree | b0fd013a1f58ee73964d4f2c9708018bba0649d1 /futility/updater_utils.h | |
parent | 16791bfe0f16f02d8be50c429e56fe46bfedda8e (diff) | |
download | vboot-ea185f1c07a88e96ad7bd664a97582559dc6e53f.tar.gz |
futility: cmd_read: Do not error on bad firmware format
Write the read firmware whether or not it can be parsed as a cros
firmware.
BUG=b:264810939
BRANCH=None
TEST=futility read /dev/null
Change-Id: Ia0fe2a6b9d9250dd05485d2f48c74a33a048ab21
Signed-off-by: Evan Benn <evanbenn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4158631
Reviewed-by: Hsuan Ting Chen <roccochen@chromium.org>
Commit-Queue: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'futility/updater_utils.h')
-rw-r--r-- | futility/updater_utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/futility/updater_utils.h b/futility/updater_utils.h index 953b91f0..a0dfc912 100644 --- a/futility/updater_utils.h +++ b/futility/updater_utils.h @@ -96,7 +96,8 @@ struct updater_config; /* * Loads the active system firmware image (usually from SPI flash chip). - * Returns 0 if success, non-zero if error. + * Returns 0 if success. Returns IMAGE_PARSE_FAILURE for non-vboot images. + * Returns other values for error. */ int load_system_firmware(struct updater_config *cfg, struct firmware_image *image); |