summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2024-04-16 08:39:48 +0200
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2024-04-23 08:34:22 +0200
commitb0a5ddee56a3683bdd6400f763158efea78cee3c (patch)
tree1750dd4f409fc9dac710c12d9b4b4b67bd5abc82 /fs
parentfs/ntfs3: Remove max link count info display during driver init (diff)
downloadlinux-b0a5ddee56a3683bdd6400f763158efea78cee3c.tar.xz
linux-b0a5ddee56a3683bdd6400f763158efea78cee3c.zip
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: 1b7dd28e14c47("fs/ntfs3: Correct function is_rst_area_valid") Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ntfs3/fslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/fslog.c b/fs/ntfs3/fslog.c
index 855519713bf7..d9d08823de62 100644
--- a/fs/ntfs3/fslog.c
+++ b/fs/ntfs3/fslog.c
@@ -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. */