VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Eric Sandeen <sandeen@redhat.com> 2006-11-16 01:19:22 -0800 committer: Linus Torvalds <torvalds@woody.osdl.org> 2006-11-16 11:43:38 -0800 commit: d6ddf55440833fd9404138026af246c51ebeef22 parent: 4c1b6d18bf2fdeb5ac725126c6928aaa98c8e22f
Commit Summary:
[PATCH] hfs_fill_super returns success even if no root inode
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/fs/hfs/super.c b/fs/hfs/super.c
index d43b4fcc8ad3..85b17b3fa4a0 100644
--- a/fs/hfs/super.c
+++ b/fs/hfs/super.c
@@ -390,11 +390,13 @@ static int hfs_fill_super(struct super_block *sb, void *data, int silent)
 		hfs_find_exit(&fd);
 		goto bail_no_root;
 	}
+	res = -EINVAL;
 	root_inode = hfs_iget(sb, &fd.search_key->cat, &rec);
 	hfs_find_exit(&fd);
 	if (!root_inode)
 		goto bail_no_root;
 
+	res = -ENOMEM;
 	sb->s_root = d_alloc_root(root_inode);
 	if (!sb->s_root)
 		goto bail_iput;