aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorNicolas Pitre <[email protected]>2015-01-27 16:10:42 +0100
committerRussell King <[email protected]>2015-01-29 15:23:01 +0000
commitc2607f74aad96d18316a6e709b40e0ffe9def148 (patch)
tree7ca8b21b5631d9fe31faa075544cfe1c26db5f3f /lib/memory-notifier-error-inject.c
parentc2273a185354fe9420fb342b1ca09a6fed857fb3 (diff)
ARM: 8294/1: ATAG_DTB_COMPAT: remove the DT workspace's hardcoded 64KB size
There is currently a hardcoded limit of 64KB for the DTB to live in and be extended with ATAG info. Some DTBs have outgrown that limit: $ du -b arch/arm/boot/dts/omap3-n900.dtb 70212 arch/arm/boot/dts/omap3-n900.dtb Furthermore, the actual size passed to atags_to_fdt() included the stack size which is obviously wrong. The initial DTB size is known, so use it to size the allocated workspace with a 50% growth assumption and relocate the temporary stack above that. This is also clamped to 32KB min / 1MB max for robustness against bad DTB data. Reported-by: Pali Rohár <[email protected]> Tested-by: Pavel Machek <[email protected]> Signed-off-by: Nicolas Pitre <[email protected]> Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions