diff options
author | Nico Huber <nico.huber@secunet.com> | 2020-07-14 12:21:19 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2020-07-19 11:20:10 +0000 |
commit | d2245d890b61ae62251fcd89040637c2eb3071b7 (patch) | |
tree | 2151dcb573ed6e7971249a633142779b44d91b41 /src/mainboard | |
parent | ef59c93f7776dde2e7be1efbfdaf20384425bda8 (diff) |
mb/qemu/fw_cfg: Fix return code check for fw_cfg_e820_select()
Change-Id: I22b9eb6ead37dbba6807d145468843bd01c94c84
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43445
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/emulation/qemu-i440fx/fw_cfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/emulation/qemu-i440fx/fw_cfg.c b/src/mainboard/emulation/qemu-i440fx/fw_cfg.c index 6ee6863dfe..d6caedf764 100644 --- a/src/mainboard/emulation/qemu-i440fx/fw_cfg.c +++ b/src/mainboard/emulation/qemu-i440fx/fw_cfg.c @@ -118,7 +118,7 @@ uintptr_t fw_cfg_tolud(void) uint64_t top = 0; uint32_t size = 0, pos = 0; - if (fw_cfg_e820_select(&size)) { + if (fw_cfg_e820_select(&size) == 0) { while (!fw_cfg_e820_read(&e, &size, &pos)) { uint64_t limit = e.address + e.length; if (e.type == 1 && limit < 4ULL * GiB && limit > top) |