]> git.karo-electronics.de Git - karo-tx-linux.git/commit
init/do_mounts_rd.c: fix ramdisk identification for padded cramfs
authorNeil Armstrong <narmstrong@neotion.com>
Mon, 24 Oct 2011 14:59:03 +0000 (01:59 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:08:11 +0000 (20:08 +1100)
commit78c86bb04e84b34e678f1acf438a12ddd51303e6
tree5af7fcb02adb0478c8fbbbfb0ec0f688ff8e44ef
parent85e5401c00ffc395d8e1f3a5633ff27dbdea09d2
init/do_mounts_rd.c: fix ramdisk identification for padded cramfs

When a cramfs ramdisk padded with 512 bytes is given to the kernel, the
current identify_ramdisk_image function fails to identify it.

Tested with a padded cramfs image on an ARM based board.

Signed-off-by: Neil Armstrong <narmstrong@neotion.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Davidlohr Bueso <dave@gnu.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
init/do_mounts_rd.c