]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Wrong return value in hfs_fill_super
authorAndrew Morton <akpm@osdl.org>
Tue, 13 Apr 2004 02:24:35 +0000 (19:24 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 13 Apr 2004 02:24:35 +0000 (19:24 -0700)
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.

fs/hfs/super.c

index 3d1e3d161880ff9f9581ed7171854c7106c2f919..c4e1b9cef310a07751538da5c4932a0f1af0ff29 100644 (file)
@@ -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;
        }