Merge branch 'for-linus' of git://git.kernel.dk/linux-block
[firefly-linux-kernel-4.4.55.git] / drivers / of / fdt.c
index 4b15aa163b6ef6c92660d96bc95fadeee897f192..cde35c5d0191bd5950c7953d5b8e88a2d139306f 100644 (file)
@@ -191,7 +191,7 @@ static void * unflatten_dt_node(void *blob,
        if (!pathp)
                return mem;
 
-       allocl = l++;
+       allocl = ++l;
 
        /* version 0x10 has a more compact unit name here instead of the full
         * path. we accumulate the full path size using "fpsize", we'll rebuild