diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index 50bbe0edf538022c2f9f2f13546499fe4addf643..7e585d201ba03562802092aef292f76e32b11909 100644 --- a/drivers/of/overlay.c +++ b/drivers/of/overlay.c @@ -245,6 +245,8 @@ static struct property *dup_and_fixup_symbol_prop( if (!target_path) return NULL; target_path_len = strlen(target_path); + if (!strcmp(target_path, "/")) + target_path_len = 0; new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); if (!new_prop)