aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/mem_region.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/mem_region.c b/core/mem_region.c
index 8d1363f..77324d7 100644
--- a/core/mem_region.c
+++ b/core/mem_region.c
@@ -1,4 +1,4 @@
-/* Copyright 2013-2014 IBM Corp.
+/* Copyright 2013-2017 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -947,7 +947,10 @@ static void mem_region_parse_reserved_properties(void)
dt_get_number(range, 2),
dt_get_number(range + 1, 2),
NULL, REGION_FW_RESERVED);
- add_region(region);
+ if (!add_region(region)) {
+ prerror("Couldn't add mem_region %s\n", name);
+ abort();
+ }
}
} else if (names || ranges) {
prerror("Invalid properties: reserved-names=%p "