summaryrefslogtreecommitdiff
path: root/src/security
diff options
context:
space:
mode:
Diffstat (limited to 'src/security')
-rw-r--r--src/security/vboot/common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/security/vboot/common.c b/src/security/vboot/common.c
index 496ab782ab..47e1aa4f56 100644
--- a/src/security/vboot/common.c
+++ b/src/security/vboot/common.c
@@ -163,11 +163,12 @@ static void vboot_migrate_cbmem(int unused)
size_t cbmem_size = wd_preram->buffer_offset + wd_preram->buffer_size;
struct vboot_working_data *wd_cbmem =
cbmem_add(CBMEM_ID_VBOOT_WORKBUF, cbmem_size);
+ assert(wd_cbmem != NULL);
+
printk(BIOS_DEBUG,
"VBOOT: copying vboot_working_data (%zu bytes) to CBMEM...\n",
cbmem_size);
memcpy(wd_cbmem, wd_preram, cbmem_size);
- assert(wd_cbmem != NULL);
}
ROMSTAGE_CBMEM_INIT_HOOK(vboot_migrate_cbmem)
#elif CONFIG(VBOOT_STARTS_IN_ROMSTAGE)