diff options
Diffstat (limited to 'src/arch/x86')
-rw-r--r-- | src/arch/x86/acpi_device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/x86/acpi_device.c b/src/arch/x86/acpi_device.c index f4f1c4c3b5..49439cc4a9 100644 --- a/src/arch/x86/acpi_device.c +++ b/src/arch/x86/acpi_device.c @@ -113,7 +113,9 @@ static size_t acpi_device_path_fill(struct device *dev, char *buf, /* Fill in the path from the root device */ next += snprintf(buf + next, buf_len - next, "%s%s", - dev->path.type == DEVICE_PATH_ROOT ? "" : ".", name); + (dev->path.type == DEVICE_PATH_ROOT + || (strlen(name) == 0)) ? + "" : ".", name); return next; } |