Changeset 4fd05d3 in rtems


Ignore:
Timestamp:
Jul 7, 2018, 7:57:19 PM (16 months ago)
Author:
Simon Glass <sjg@…>
Branches:
master
Children:
80eaf45
Parents:
78ad048
git-author:
Simon Glass <sjg@…> (07/07/18 19:57:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/19/18 05:01:12)
Message:

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.

Signed-off-by: Simon Glass <sjg@…>
Signed-off-by: David Gibson <david@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/dtc/libfdt/fdt_sw.c

    r78ad048 r4fd05d3  
    171171        FDT_SW_PROBE(fdt);
    172172
    173         headsize = fdt_off_dt_struct(fdt);
     173        headsize = fdt_off_dt_struct(fdt) + fdt_size_dt_struct(fdt);
    174174        tailsize = fdt_size_dt_strings(fdt);
    175175
Note: See TracChangeset for help on using the changeset viewer.