Skip to content
Commit c3b7aa76 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

fdt: Align the start of the livetree



Ensure that the block of memory used by live tree is aligned according to
the default for structures. This ensures that the root node appears at
the start of the block, so it can be used with free(), rather than being
4 bytes later in some cases.

This corrects a rather obscure bug in unflatten_device_tree().

Fixes: 8b50d526 ("dm: Add a function to create a 'live' device tree")

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 76636da6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment