]> 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, 5 Oct 2011 00:43:42 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Oct 2011 06:00:01 +0000 (17:00 +1100)
commitf78ed84fda873520e19ddacd9e9b39163d2e744d
tree6f9fa1395508f199243e5be424f0dd5932dc6bb5
parentc5584c43d8877b6a90a3c32695c71b62865a4370
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