]> 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, 5 Oct 2011 00:43:42 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Oct 2011 06:49:54 +0000 (17:49 +1100)
commit4f72a0e808e14dfc58fb8f5ca0731aa936da500d
tree0745a5f06bf18b719cf9bdc19015acc6942ea98a
parente3c5c72fa14712677ad4d3b0a1c2dc3a9073f324
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