fs/efs/super.c: fix return value

When sb_bread() fails, the return value should be -EIO, fix it.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Heloise <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Firo Yang <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Heloise 2016-05-20 17:04:25 -07:00 • committed by Linus Torvalds
commit 4108124f5c

View file

@ -275,7 +275,7 @@ static int efs_fill_super(struct super_block *s, void *d, int silent)
if (!bh) {
pr_err("cannot read volume header\n");
return -EINVAL;
return -EIO;
}
/*
@ -293,7 +293,7 @@ static int efs_fill_super(struct super_block *s, void *d, int silent)
bh = sb_bread(s, sb->fs_start + EFS_SUPER);
if (!bh) {
pr_err("cannot read superblock\n");
return -EINVAL;
return -EIO;
}
if (efs_validate_super(sb, (struct efs_super *) bh->b_data)) {