]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 13 Apr 2012 13:05:41 +0000 (14:05 +0100)
commitf01a599e8ec50db1d8b07802e84cbf8eea94a8a5
tree962c95d10f0aa152820a5ca9f6ac8269dbea21aa
parentcf6fbe372e9a4ceeb5167e86f5c044e1c9be87f4
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