Skip to content

Commit a368b57

Browse files
ZideChen0lijinxia
authored andcommitted
hv: fix typo in relocation code
Fixed a typo in 621425d ("hv: further fix to configurable relocation"). It shoud allocate fixed address if CONFIG_RELOC is not defined.
1 parent b35e330 commit a368b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypervisor/bsp/uefi/efi/malloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ EFI_STATUS __emalloc(UINTN size, UINTN min_addr, EFI_PHYSICAL_ADDRESS *addr,
268268
continue;
269269
}
270270

271-
#ifndef CONFIG_RELOC
271+
#ifdef CONFIG_RELOC
272272
aligned = start;
273273
#else
274274
aligned = min_addr;

0 commit comments

Comments
 (0)