]> git.sur5r.net Git - u-boot/commit
Prevent crash if random/invalid ramdisks are passed to bootm
authorKumar Gala <galak@kernel.crashing.org>
Sat, 30 Aug 2008 00:08:29 +0000 (19:08 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 6 Sep 2008 22:18:50 +0000 (00:18 +0200)
commitea86b9e64b811753d9eabe0f560ee189fbe5d0c1
tree70af82b4e01fbc3da58032dc18580cac02c98cf8
parent8e02494e8f86c8f2d7324b5eb9e75271104a01ef
Prevent crash if random/invalid ramdisks are passed to bootm

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 <galak@kernel.crashing.org>
common/cmd_bootm.c
common/image.c