summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vendorcode/google/chromeos/vboot_common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vendorcode/google/chromeos/vboot_common.c b/src/vendorcode/google/chromeos/vboot_common.c
index 1c216d0d82..6184b0d5e9 100644
--- a/src/vendorcode/google/chromeos/vboot_common.c
+++ b/src/vendorcode/google/chromeos/vboot_common.c
@@ -58,10 +58,9 @@ int vboot_get_handoff_info(void **addr, uint32_t *size)
static int vboot_handoff_flag(uint32_t flag)
{
struct vboot_handoff *vbho;
+ uint32_t size;
- vbho = cbmem_find(CBMEM_ID_VBOOT_HANDOFF);
-
- if (vbho == NULL)
+ if (vboot_get_handoff_info((void **)&vbho, &size))
return 0;
return !!(vbho->init_params.out_flags & flag);