]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
of: Add memory limiting function for flattened devicetrees
authorLaura Abbott <lauraa@codeaurora.org>
Tue, 15 Jul 2014 17:03:35 +0000 (10:03 -0700)
committerGrant Likely <grant.likely@linaro.org>
Wed, 30 Jul 2014 03:26:45 +0000 (21:26 -0600)
commit704033cee2e5b3c1c6eaf5bb398e465a9c3667b5
tree4b6e7a5ca961e3b8c82fd82295b53cca550a332a
parent4972a74b888c6b52ca41fae6076786dbbeb746d5
of: Add memory limiting function for flattened devicetrees

Buggy bootloaders may pass bogus memory entries in the devicetree.
Add of_fdt_limit_memory to add an upper bound on the number of
entries that can be present in the devicetree.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Tested-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/fdt.c
include/linux/of_fdt.h