From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sat, 24 Oct 2009 22:39:42 +0200 Subject: [U-Boot] [PATCH] fdt: Fix fdt padding issue for initrd mem_rsv In-Reply-To: <1256185791-5492-1-git-send-email-galak@kernel.crashing.org> References: <1256185791-5492-1-git-send-email-galak@kernel.crashing.org> Message-ID: <20091024203942.D00CD185D4AA@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kumar Gala, In message <1256185791-5492-1-git-send-email-galak@kernel.crashing.org> you wrote: > 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 > --- > Wolfgang, this has been a long standing bug but only shows up if the fdt > blob happens to be a particular size. Please include this for the v2009.11 > release. > > - k > > common/fdt_support.c | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "The bad reputation UNIX has gotten is totally undeserved, laid on by people who don't understand, who have not gotten in there and tried anything." -- Jim Joyce, owner of Jim Joyce's UNIX Bookstore