From: Heloise Date: Sat, 21 May 2016 00:04:25 +0000 (-0700) Subject: fs/efs/super.c: fix return value X-Git-Tag: v4.7-rc1~89^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4108124f5c46efc951c4c6be947598a21d6b7fde;p=platform%2Fkernel%2Flinux-exynos.git 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/1463464943-4142-1-git-send-email-os@iscas.ac.cn Signed-off-by: Heloise Cc: Johannes Weiner Cc: Firo Yang Cc: Vladimir Davydov Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/efs/super.c b/fs/efs/super.c index cb68dac..368f7dd 100644 --- a/fs/efs/super.c +++ b/fs/efs/super.c @@ -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)) {