projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58a9ecb
)
ext4: fix wrong usage of le32_to_cpu()
author
Michael Walle
<michael@walle.cc>
Mon, 29 Aug 2016 08:46:46 +0000
(10:46 +0200)
committer
Tom Rini
<trini@konsulko.com>
Fri, 23 Sep 2016 13:02:05 +0000
(09:02 -0400)
le32_to_cpu() must only convert the revision_level and not the boolean
result.
Signed-off-by: Michael Walle <michael@walle.cc>
fs/ext4/ext4_common.c
patch
|
blob
|
history
diff --git
a/fs/ext4/ext4_common.c
b/fs/ext4/ext4_common.c
index caec9d45779bfedbc98ccbf5e40bd11b47df84fa..cd1bdfe025ad9282c97699995e79d77c20dd70eb 100644
(file)
--- a/
fs/ext4/ext4_common.c
+++ b/
fs/ext4/ext4_common.c
@@
-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);