From c241a7a9ea1ecd46aa0434f87df3ccb4815b998f Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 12 Apr 2004 19:24:35 -0700 Subject: [PATCH] [PATCH] Wrong return value in hfs_fill_super From: Nick Wellnhofer hfs_fill_super in 2.6.5 returns -EIO instead of -EINVAL if a valid supe= block isn't found. So mount_block_root in init/do_mounts.c bails out before trying to mount the root device as XFS. --- fs/hfs/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/hfs/super.c b/fs/hfs/super.c index 3d1e3d161880f..c4e1b9cef310a 100644 --- a/fs/hfs/super.c +++ b/fs/hfs/super.c @@ -276,6 +276,7 @@ static int hfs_fill_super(struct super_block *sb, void *data, int silent) if (!silent) hfs_warn("VFS: Can't find a HFS filesystem on dev %s.\n", hfs_mdb_name(sb)); + res = -EINVAL; goto bail2; } -- 2.53.0