From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sun, 07 Sep 2008 00:19:10 +0200 Subject: [U-Boot] [PATCH] Prevent crash if random/invalid ramdisks are passed to bootm In-Reply-To: <1220054909-1627-1-git-send-email-galak@kernel.crashing.org> References: <1220054909-1627-1-git-send-email-galak@kernel.crashing.org> Message-ID: <20080906221910.6418124815@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 <1220054909-1627-1-git-send-email-galak@kernel.crashing.org> you wrote: > Adds returning an error from the ramdisk detection code if > its not a real ramdisk (invalid). There is no reason we can't > just return back to the console if we detect an invalid > ramdisk or CRC error. > > Signed-off-by: Kumar Gala > --- > > This is based on Anatolij's patch: > > 'Prevent crash if random DTB address is passed to bootm' > > - k > > common/cmd_bootm.c | 2 +- > common/image.c | 3 ++- > 2 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 All this doesn't alter anything, you know. The world is still full of stupid people. They don't use their brains. They don't seem to want to think straight. - Terry Pratchett, _Soul Music_