projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ee4930
)
ext4: Fix endianness bug when reading the MMP block
author
Santosh Nayak
<
[email protected]
>
Mon, 27 Feb 2012 06:09:03 +0000
(
01:09
-0500)
committer
Theodore Ts'o
<
[email protected]
>
Mon, 27 Feb 2012 06:09:03 +0000
(
01:09
-0500)
Sparse complained about this endian bug in fs/ext4/mmp.c.
Signed-off-by: Santosh Nayak <
[email protected]
>
Reviewed-by: Johann Lombardi <
[email protected]
>
Reviewed-by: Andreas Dilger <
[email protected]
>
Signed-off-by: "Theodore Ts'o" <
[email protected]
>
fs/ext4/mmp.c
patch
|
blob
|
history
diff --git
a/fs/ext4/mmp.c
b/fs/ext4/mmp.c
index 7ea4ba4eff2ac4b9dbcae63a54ee68bb5e1a7190..ed6548d89165e1d9c31118aca21d3e89a3772ab2 100644
(file)
--- a/
fs/ext4/mmp.c
+++ b/
fs/ext4/mmp.c
@@
-257,8
+257,8
@@
int ext4_multi_mount_protect(struct super_block *sb,
* If check_interval in MMP block is larger, use that instead of
* update_interval from the superblock.
*/
- if (
mmp->mmp_check_interval
> mmp_check_interval)
- mmp_check_interval =
mmp->mmp_check_interval
;
+ if (
le16_to_cpu(mmp->mmp_check_interval)
> mmp_check_interval)
+ mmp_check_interval =
le16_to_cpu(mmp->mmp_check_interval)
;
seq = le32_to_cpu(mmp->mmp_seq);
if (seq == EXT4_MMP_SEQ_CLEAN)