author: Wei Yongjun <weiyongjun1@huawei.com> 2021-05-19 14:16:57 +0000
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-14 17:07:50 +0200
commit: 3f7e6cae20645c0f61f56a0ddc360b5e9f9cb6dd
parent: 9d2da0b8863a207c2f3d8a97b2b038ea8c6592b1
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/fs/erofs/super.c b/fs/erofs/super.c
index bbf3bbd908e0..22991d22af5a 100644
--- a/fs/erofs/super.c
+++ b/fs/erofs/super.c
@@ -285,6 +285,7 @@ static int erofs_read_superblock(struct super_block *sb)
goto out;
}
+ ret = -EINVAL;
blkszbits = dsb->blkszbits;
/* 9(512 bytes) + LOG_SECTORS_PER_BLOCK == LOG_BLOCK_SIZE */
if (blkszbits != LOG_BLOCK_SIZE) {