diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-02-12 21:50:45 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-02-16 15:42:19 +0100 |
commit | afa17aa23ffcd62b2233281b603cb95510655dce (patch) | |
tree | 54b09feca012886faf9f959f782180f2a1f9b9b0 | |
parent | d391c13c99a2b48c98cef6df4479247cd4e62f9d (diff) | |
download | u-boot-afa17aa23ffcd62b2233281b603cb95510655dce.tar.gz u-boot-afa17aa23ffcd62b2233281b603cb95510655dce.tar.bz2 u-boot-afa17aa23ffcd62b2233281b603cb95510655dce.zip |
efi_selftest: do not use efi_free_pool()
In efi_selftest we are in EFI land. We should not use U-Boot library
functions but boot time services for memory management.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Alexander Graf <agraf@suse.de>
-rw-r--r-- | lib/efi_selftest/efi_selftest_block_device.c | 2 | ||||
-rw-r--r-- | lib/efi_selftest/efi_selftest_startimage_exit.c | 2 | ||||
-rw-r--r-- | lib/efi_selftest/efi_selftest_startimage_return.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/efi_selftest/efi_selftest_block_device.c b/lib/efi_selftest/efi_selftest_block_device.c index 1cdd8307f4..21409aed6f 100644 --- a/lib/efi_selftest/efi_selftest_block_device.c +++ b/lib/efi_selftest/efi_selftest_block_device.c @@ -264,7 +264,7 @@ static int teardown(void) } if (image) { - r = efi_free_pool(image); + r = boottime->free_pool(image); if (r != EFI_SUCCESS) { efi_st_error("Failed to free image\n"); return EFI_ST_FAILURE; diff --git a/lib/efi_selftest/efi_selftest_startimage_exit.c b/lib/efi_selftest/efi_selftest_startimage_exit.c index 0d9e16437a..fa4b7d4a9b 100644 --- a/lib/efi_selftest/efi_selftest_startimage_exit.c +++ b/lib/efi_selftest/efi_selftest_startimage_exit.c @@ -103,7 +103,7 @@ static int teardown(void) efi_status_t r = EFI_ST_SUCCESS; if (image) { - r = efi_free_pool(image); + r = boottime->free_pool(image); if (r != EFI_SUCCESS) { efi_st_error("Failed to free image\n"); return EFI_ST_FAILURE; diff --git a/lib/efi_selftest/efi_selftest_startimage_return.c b/lib/efi_selftest/efi_selftest_startimage_return.c index 3c6249fdf1..fabf53d983 100644 --- a/lib/efi_selftest/efi_selftest_startimage_return.c +++ b/lib/efi_selftest/efi_selftest_startimage_return.c @@ -103,7 +103,7 @@ static int teardown(void) efi_status_t r = EFI_ST_SUCCESS; if (image) { - r = efi_free_pool(image); + r = boottime->free_pool(image); if (r != EFI_SUCCESS) { efi_st_error("Failed to free image\n"); return EFI_ST_FAILURE; |