summaryrefslogtreecommitdiff
path: root/firmware/lib
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2019-07-30 10:13:14 +0800
committerCommit Bot <commit-bot@chromium.org>2019-08-13 08:23:57 +0000
commit9cced0d0ee574caad85c856519e0399f5e1f569d (patch)
tree90e31606dcae96f4c71427644f194eb9fa4b1caa /firmware/lib
parent166a07d1d64a9aed1bfecc8ba0cd73354a8dbd60 (diff)
downloadvboot-9cced0d0ee574caad85c856519e0399f5e1f569d.tar.gz
vboot: replace VBERROR_INVALID_PARAMETER with vboot2 equivalent
Replace vboot1-style VBERROR_INVALID_PARAMETER with vboot2 equivalent VB2_ERROR_INVALID_PARAMETER. BUG=b:124141368, chromium:988410 TEST=make clean && make runtests BRANCH=none Change-Id: I46227cd3a7d7ce84654a0093f9d64883c9563381 Signed-off-by: Joel Kitching <kitching@google.com> Cq-Depend: chromium:1728116 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1728294 Commit-Queue: Joel Kitching <kitching@chromium.org> Tested-by: Joel Kitching <kitching@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'firmware/lib')
-rw-r--r--firmware/lib/vboot_api_kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/lib/vboot_api_kernel.c b/firmware/lib/vboot_api_kernel.c
index 727abc50..23ee6e8b 100644
--- a/firmware/lib/vboot_api_kernel.c
+++ b/firmware/lib/vboot_api_kernel.c
@@ -485,7 +485,7 @@ vb2_error_t VbVerifyMemoryBootImage(struct vb2_context *ctx,
struct vb2_gbb_header *gbb = vb2_get_gbb(ctx);
if ((boot_image == NULL) || (image_size == 0)) {
- retval = VBERROR_INVALID_PARAMETER;
+ retval = VB2_ERROR_INVALID_PARAMETER;
goto fail;
}