fdt: Correct handling of alias regions
authorSimon Glass <sjg@chromium.org>
Sun, 18 Oct 2015 01:41:15 +0000 (19:41 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 4 Nov 2015 13:49:51 +0000 (14:49 +0100)
commit9d8ac956af304072dd11054e2b981ac3770ca49b
treeaf1861326a3a7b9d6d975646cca67a041e839b11
parent3bc37a50e0db9978c6fbb1b2b6c3a351cebe631e
fdt: Correct handling of alias regions

At present the last four bytes of the alias region are dropped in
the case where the last alias is included. This results in a corrupted
device tree. Fix this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
lib/libfdt/fdt_region.c