]> 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>
Wed, 28 Sep 2011 00:50:51 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 30 Sep 2011 04:53:43 +0000 (14:53 +1000)
commitb5378ecade3ab9495b9628a72c47212095eb32dd
tree83178c12bc07004efa7af9b18a1edc56f2e673d1
parent50beea1f4f15b98eb8a24aea644afb753aac9882
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