]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
init/do_mounts_rd.c: fix ramdisk identification for padded cramfs
authorNeil Armstrong <narmstrong@neotion.com>
Wed, 28 Sep 2011 00:50:51 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 4 Oct 2011 07:41:55 +0000 (18:41 +1100)
commit97731737c3911aa17407b5a1202eaab509005205
tree02a8e25c952ebc558be7b5d6a333c9b4d02dfd08
parentf7202404084eef6e72fc1c4150d9b6494aba1fb3
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 <>
init/do_mounts_rd.c