summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/mem/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mem/init.c b/core/mem/init.c
index c8aa96b3..dc28de04 100644
--- a/core/mem/init.c
+++ b/core/mem/init.c
@@ -22,7 +22,7 @@ int scan_highmem_area(void *data, addr_t start, addr_t len,
dprintf("start = %x, len = %x, type = %d", start, len, type);
if (start < 0x100000 || start > E820_MEM_MAX
- || !SMT_FREE)
+ || type != SMT_FREE)
return 0;
if (start < __com32.cs_memsize) {