提交 011bc334 编写于 作者: M Michael Walle 提交者: Tom Rini

ext4: fix wrong usage of le32_to_cpu()

le32_to_cpu() must only convert the revision_level and not the boolean
result.
Signed-off-by: NMichael Walle <michael@walle.cc>
上级 58a9ecba
......@@ -2273,7 +2273,7 @@ int ext4fs_mount(unsigned part_length)
goto fail;
}
if (le32_to_cpu(data->sblock.revision_level == 0))
if (le32_to_cpu(data->sblock.revision_level) == 0)
fs->inodesz = 128;
else
fs->inodesz = le16_to_cpu(data->sblock.inode_size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册