diff mbox series

[05/11] fs/ntfs3: Use 64 bit variable to avoid 32 bit overflow

Message ID 4e9cb4a5-202d-45db-846f-17ef74bd2a5b@paragon-software.com (mailing list archive)
State New
Headers show
Series Bugfix and refactoring | expand

Commit Message

Konstantin Komarov April 17, 2024, 1:06 p.m. UTC
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
---
  fs/ntfs3/fslog.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

      /* Determine which restart area we are looking for. */
diff mbox series

Patch

diff --git a/fs/ntfs3/fslog.c b/fs/ntfs3/fslog.c
index d9d08823de62..d7807d255dfe 100644
--- a/fs/ntfs3/fslog.c
+++ b/fs/ntfs3/fslog.c
@@ -1184,7 +1184,8 @@  static int read_log_page(struct ntfs_log *log, u32 
vbo,
  static int log_read_rst(struct ntfs_log *log, bool first,
              struct restart_info *info)
  {
-    u32 skip, vbo;
+    u32 skip;
+    u64 vbo;
      struct RESTART_HDR *r_page = NULL;