diff options
-rw-r--r-- | core/mem_region.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/mem_region.c b/core/mem_region.c index a098685..3c93cd4 100644 --- a/core/mem_region.c +++ b/core/mem_region.c @@ -995,7 +995,11 @@ static bool mem_region_parse_reserved_nodes(const char *path) dt_get_number(reg->prop, 2), dt_get_number(reg->prop + sizeof(u64), 2), node, type); - add_region(region); + if (!add_region(region)) { + char *nodepath = dt_get_path(node); + prerror("node %s failed to add_region()\n", nodepath); + free(nodepath); + } } return true; |