Commit c241a7a9 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Wrong return value in hfs_fill_super

From: Nick Wellnhofer <wellnhofer@aevum.de>

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.
parent 53fc8f8c
...@@ -276,6 +276,7 @@ static int hfs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -276,6 +276,7 @@ static int hfs_fill_super(struct super_block *sb, void *data, int silent)
if (!silent) if (!silent)
hfs_warn("VFS: Can't find a HFS filesystem on dev %s.\n", hfs_warn("VFS: Can't find a HFS filesystem on dev %s.\n",
hfs_mdb_name(sb)); hfs_mdb_name(sb));
res = -EINVAL;
goto bail2; goto bail2;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment