Skip to content

Commit b0a5dde

Browse files
fs/ntfs3: Missed le32_to_cpu conversion
NTFS data structure fields are stored in little-endian, it is necessary to take this into account when working on big-endian architectures. Fixes: 1b7dd28("fs/ntfs3: Correct function is_rst_area_valid") Signed-off-by: Konstantin Komarov <[email protected]>
1 parent a8948b5 commit b0a5dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ntfs3/fslog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ static inline bool is_rst_area_valid(const struct RESTART_HDR *rhdr)
517517
seq_bits -= 1;
518518
}
519519

520-
if (seq_bits != ra->seq_num_bits)
520+
if (seq_bits != le32_to_cpu(ra->seq_num_bits))
521521
return false;
522522

523523
/* The log page data offset and record header length must be quad-aligned. */

0 commit comments

Comments
 (0)