diff --git a/src/kboot.c b/src/kboot.c index 3ef79efa..156040f1 100644 --- a/src/kboot.c +++ b/src/kboot.c @@ -1211,6 +1211,9 @@ static int dt_device_add_mem_region(const char *alias, uint32_t phandle, const c if (dev_node < 0) bail("DT: failed to update node for alias '%s'\n", alias); + if (!name) + return 0; + ret = fdt_appendprop_string(dt, dev_node, "memory-region-names", name); if (ret != 0) bail("DT: failed to append to 'memory-region-names' property\n");