summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/emulation/qemu-i440fx/fw_cfg.c2
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)