diff options
author | Randall Spangler <rspangler@chromium.org> | 2016-10-18 14:41:22 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2016-11-06 02:33:50 +0000 |
commit | 559a110f33b7ebe8d950f1c2de6b3b89791f862b (patch) | |
tree | 7853ac7a1f8a47cc981613e632f55cdc7dc33974 /tests/vboot_display_tests.c | |
parent | 47eeaa6e4a03d2689c9b1b46fc9b0b0b04ace3a6 (diff) | |
download | vboot-559a110f33b7ebe8d950f1c2de6b3b89791f862b.tar.gz |
vboot: use malloc and free directly
Originally, vboot1 code used VbExMalloc() and VbExFree() since it needed
to talk to EFI firmware that didn't have standard malloc() and free().
Now, coreboot and depthcharge implement them as wrappers around those
standard calls. vboot2 code already calls them directly, so let vboot1
code do that too.
BUG=chromium:611535
BRANCH=none
TEST=make runtests; emerge-kevin coreboot depthcharge
Change-Id: I49ad0e32e38d278dc3589bfaf494bcf0e4b0a4bd
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/400905
Diffstat (limited to 'tests/vboot_display_tests.c')
-rw-r--r-- | tests/vboot_display_tests.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/vboot_display_tests.c b/tests/vboot_display_tests.c index 99d14f21..ff036d23 100644 --- a/tests/vboot_display_tests.c +++ b/tests/vboot_display_tests.c @@ -63,9 +63,9 @@ static void ResetMocks(void) /* * Note, VbApiKernelFree() expects this to be allocated by - * VbExMalloc(), so we cannot just assign it staticly. + * malloc(), so we cannot just assign it staticly. */ - cparams.gbb = VbExMalloc(sizeof(*gbb)); + cparams.gbb = malloc(sizeof(*gbb)); gbb->header_size = sizeof(*gbb); gbb->rootkey_offset = gbb_used; gbb->rootkey_size = 64; @@ -264,8 +264,5 @@ int main(void) DisplayKeyTest(); FontTest(); - if (vboot_api_stub_check_memory()) - return 255; - return gTestSuccess ? 0 : 255; } |