ARM: 7380/1: DT: do not add a zero-sized memory property
authorMarc Zyngier <Marc.Zyngier@arm.com>
Wed, 11 Apr 2012 13:52:56 +0000 (14:52 +0100)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 15:06:27 +0000 (20:06 +0530)
commit1de4f1813bd05669dbffd93eebc81f9c08bccb90
treecc573aa06b997368651822a18fc27eb4cb0b0072
parent984df528094e5370a5bab0070bf4d5da69376425
ARM: 7380/1: DT: do not add a zero-sized memory property

Some bootloaders are broken enough to expose an ATAG_MEM with
a null size. Converting such tag to a memory node leads to
an unbootable system.

Skip over zero sized ATAG_MEM to avoid this situation.

Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/boot/compressed/atags_to_fdt.c