Unverified Commit b0a5ddee authored by Konstantin Komarov's avatar Konstantin Komarov
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: 1b7dd28e("fs/ntfs3: Correct function is_rst_area_valid")
Signed-off-by: default avatarKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
parent a8948b54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -517,7 +517,7 @@ static inline bool is_rst_area_valid(const struct RESTART_HDR *rhdr)
		seq_bits -= 1;
	}

	if (seq_bits != ra->seq_num_bits)
	if (seq_bits != le32_to_cpu(ra->seq_num_bits))
		return false;

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