mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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:
parent
28898fd1a8
commit
4108124f5c
1 changed files with 2 additions and 2 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue