summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-12-10 05:41:25 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-12-10 05:41:25 +0100
commit293e981e7452511a876431aa076c0eb256623124 (patch)
treec15e999a2f1c69cb193c5f1a1015bbc095dcd33d /common
parent056196ba04574d4f8cf11d92df09eb664a3e62dd (diff)
parent5451508c4ff5d8f1d0c115963508b2ca7120141a (diff)
downloadbarebox-293e981e7452511a876431aa076c0eb256623124.tar.gz
barebox-293e981e7452511a876431aa076c0eb256623124.tar.xz
Merge branch 'for-next/pci'
Diffstat (limited to 'common')
-rw-r--r--common/efi/efi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/efi/efi.c b/common/efi/efi.c
index 73cea37036..ed81583550 100644
--- a/common/efi/efi.c
+++ b/common/efi/efi.c
@@ -361,7 +361,7 @@ efi_status_t efi_main(efi_handle_t image, efi_system_table_t *sys_table)
if (EFI_ERROR(efiret))
panic("failed to allocate malloc pool: %s\n",
efi_strerror(efiret));
- mem_malloc_init((void *)mem, (void *)mem + memsize);
+ mem_malloc_init((void *)mem, (void *)mem + memsize - 1);
start_barebox();