lkml.org 
[lkml]   [2024]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 02/11] fs/ntfs3: Missed le32_to_cpu conversion
From
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
---
 fs/ntfs3/fslog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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. */
--
2.34.1

\
 
 \ /
  Last update: 2024-04-17 15:05    [W:0.372 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site