]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
fdt: Fix fdt padding issue for initrd mem_rsv
authorKumar Gala <galak@kernel.crashing.org>
Thu, 22 Oct 2009 04:29:51 +0000 (23:29 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 24 Oct 2009 20:39:51 +0000 (22:39 +0200)
commitd535a493004fb701f131b132402a7704f9c9342d
tree72e423232c5b97807e32a97f614f1e25389f53e9
parent0ac59d0c0718ccdc7f8184668ec5c4f48c1987a2
fdt: Fix fdt padding issue for initrd mem_rsv

Its possible that we end up with a device tree that happens to be a
particular size that after we call fdt_resize() we don't have any
space left for the initrd mem_rsv.

Fix this be adding a second mem_rsv into the size calculation.  We
had one to cover the fdt itself and we have the potential of adding
a second for the initrd.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
common/fdt_support.c