]> git.baikalelectronics.ru Git - uboot.git/commit
libfdt: Copy the struct region in fdt_resize()
authorSimon Glass <sjg@chromium.org>
Sat, 20 Jul 2019 18:23:59 +0000 (12:23 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 29 Jul 2019 15:38:06 +0000 (09:38 -0600)
commitf91f850e7eb1215410b17a82b8ad2ee5b78eb4a4
tree0e0267724e1bdc7b3751b24fcd9f429bd048eefd
parente692caee22b13588566e5e4f129bdff4a3accfba
libfdt: Copy the struct region in fdt_resize()

At present this function appears to copy only the data before the struct
region and the data in the string region. It does not seem to copy the
struct region itself.

>From the arguments of this function it seems that it should support fdt
and buf being different. This patch attempts to fix this problem.

Upstream commit: c72fa77 libfdt: Copy the struct region in fdt_resize()

Signed-off-by: Simon Glass <sjg@chromium.org>
scripts/dtc/libfdt/fdt_sw.c