summaryrefslogtreecommitdiff
path: root/firmware/lib/vboot_api_kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/lib/vboot_api_kernel.c')
-rw-r--r--firmware/lib/vboot_api_kernel.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/lib/vboot_api_kernel.c b/firmware/lib/vboot_api_kernel.c
index 53f8b0ed..f264fb7f 100644
--- a/firmware/lib/vboot_api_kernel.c
+++ b/firmware/lib/vboot_api_kernel.c
@@ -1060,11 +1060,11 @@ void VbApiKernelFree(VbCommonParams *cparams)
{
/* VbSelectAndLoadKernel() always allocates this, tests don't */
if (cparams->gbb) {
- VbExFree(cparams->gbb);
+ free(cparams->gbb);
cparams->gbb = NULL;
}
if (cparams->bmp) {
- VbExFree(cparams->bmp);
+ free(cparams->bmp);
cparams->bmp = NULL;
}
}
@@ -1110,7 +1110,7 @@ VbError_t VbSelectAndLoadKernel(VbCommonParams *cparams,
memset(kparams->partition_guid, 0, sizeof(kparams->partition_guid));
cparams->bmp = NULL;
- cparams->gbb = VbExMalloc(sizeof(*cparams->gbb));
+ cparams->gbb = malloc(sizeof(*cparams->gbb));
retval = VbGbbReadHeader_static(cparams, cparams->gbb);
if (VBERROR_SUCCESS != retval)
goto VbSelectAndLoadKernel_exit;
@@ -1360,7 +1360,7 @@ VbError_t VbVerifyMemoryBootImage(VbCommonParams *cparams,
/* Read GBB Header */
cparams->bmp = NULL;
- cparams->gbb = VbExMalloc(sizeof(*cparams->gbb));
+ cparams->gbb = malloc(sizeof(*cparams->gbb));
retval = VbGbbReadHeader_static(cparams, cparams->gbb);
if (VBERROR_SUCCESS != retval) {
VBDEBUG(("Gbb read header failed.\n"));
@@ -1403,7 +1403,7 @@ VbError_t VbVerifyMemoryBootImage(VbCommonParams *cparams,
retval = VBERROR_INVALID_KERNEL_FOUND;
/* Allocate work buffer */
- workbuf = (uint8_t *)VbExMalloc(VB2_KERNEL_WORKBUF_RECOMMENDED_SIZE);
+ workbuf = (uint8_t *)malloc(VB2_KERNEL_WORKBUF_RECOMMENDED_SIZE);
if (!workbuf)
goto fail;
vb2_workbuf_init(&wb, workbuf, VB2_KERNEL_WORKBUF_RECOMMENDED_SIZE);
@@ -1502,9 +1502,9 @@ VbError_t VbVerifyMemoryBootImage(VbCommonParams *cparams,
fail:
VbApiKernelFree(cparams);
if (NULL != kernel_subkey)
- VbExFree(kernel_subkey);
+ free(kernel_subkey);
if (NULL != workbuf)
- VbExFree(workbuf);
+ free(workbuf);
return retval;
}