mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
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>
This commit is contained in:
parent
d391c13c99
commit
afa17aa23f
3 changed files with 3 additions and 3 deletions
|
@ -264,7 +264,7 @@ static int teardown(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (image) {
|
if (image) {
|
||||||
r = efi_free_pool(image);
|
r = boottime->free_pool(image);
|
||||||
if (r != EFI_SUCCESS) {
|
if (r != EFI_SUCCESS) {
|
||||||
efi_st_error("Failed to free image\n");
|
efi_st_error("Failed to free image\n");
|
||||||
return EFI_ST_FAILURE;
|
return EFI_ST_FAILURE;
|
||||||
|
|
|
@ -103,7 +103,7 @@ static int teardown(void)
|
||||||
efi_status_t r = EFI_ST_SUCCESS;
|
efi_status_t r = EFI_ST_SUCCESS;
|
||||||
|
|
||||||
if (image) {
|
if (image) {
|
||||||
r = efi_free_pool(image);
|
r = boottime->free_pool(image);
|
||||||
if (r != EFI_SUCCESS) {
|
if (r != EFI_SUCCESS) {
|
||||||
efi_st_error("Failed to free image\n");
|
efi_st_error("Failed to free image\n");
|
||||||
return EFI_ST_FAILURE;
|
return EFI_ST_FAILURE;
|
||||||
|
|
|
@ -103,7 +103,7 @@ static int teardown(void)
|
||||||
efi_status_t r = EFI_ST_SUCCESS;
|
efi_status_t r = EFI_ST_SUCCESS;
|
||||||
|
|
||||||
if (image) {
|
if (image) {
|
||||||
r = efi_free_pool(image);
|
r = boottime->free_pool(image);
|
||||||
if (r != EFI_SUCCESS) {
|
if (r != EFI_SUCCESS) {
|
||||||
efi_st_error("Failed to free image\n");
|
efi_st_error("Failed to free image\n");
|
||||||
return EFI_ST_FAILURE;
|
return EFI_ST_FAILURE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue