summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hdata/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/memory.c b/hdata/memory.c
index 1ac03c13..a85f4eba 100644
--- a/hdata/memory.c
+++ b/hdata/memory.c
@@ -608,7 +608,7 @@ static void get_msareas(struct dt_node *root,
status = GETFIELD(PHYS_ATTR_STATUS_MASK, attr);
}
- if (add_address_range(root, id, arange, type, status))
+ if (!add_address_range(root, id, arange, type, status))
prerror("Unable to use memory range %d from MSAREA %d\n", j, i);
arange = (void *)arange + be32_to_cpu(arr->esize);
OpenPOWER on IntegriCloud