]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/boot/libfdt-wrapper.c
powerpc/boot: Allocate more memory for dtb
[linux-2.6-omap-h63xx.git] / arch / powerpc / boot / libfdt-wrapper.c
index 9276327bc2bb1995343dabf417f2c3927386cd95..bb8b9b3505eecd5ce694371f0ababf41f4cf65b1 100644 (file)
@@ -185,7 +185,7 @@ void fdt_init(void *blob)
 
        /* Make sure the dt blob is the right version and so forth */
        fdt = blob;
-       bufsize = fdt_totalsize(fdt) + 4;
+       bufsize = fdt_totalsize(fdt) + EXPAND_GRANULARITY;
        buf = malloc(bufsize);
        if(!buf)
                fatal("malloc failed. can't relocate the device tree\n\r");