From a368b57ecafe981909d7b59395a45235722cff70 Mon Sep 17 00:00:00 2001 From: Zide Chen Date: Mon, 23 Jul 2018 12:31:27 -0700 Subject: [PATCH] hv: fix typo in relocation code Fixed a typo in 621425da20d0 ("hv: further fix to configurable relocation"). It shoud allocate fixed address if CONFIG_RELOC is not defined. --- hypervisor/bsp/uefi/efi/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/bsp/uefi/efi/malloc.c b/hypervisor/bsp/uefi/efi/malloc.c index 3bc4d78ae..7b0591fe4 100644 --- a/hypervisor/bsp/uefi/efi/malloc.c +++ b/hypervisor/bsp/uefi/efi/malloc.c @@ -268,7 +268,7 @@ EFI_STATUS __emalloc(UINTN size, UINTN min_addr, EFI_PHYSICAL_ADDRESS *addr, continue; } -#ifndef CONFIG_RELOC +#ifdef CONFIG_RELOC aligned = start; #else aligned = min_addr;