Skip to content

Commit f759942

Browse files
fs/ntfs3: Add missing error check
We must check return value of log_read_rst Signed-off-by: Konstantin Komarov <[email protected]>
1 parent 9260343 commit f759942

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/ntfs3/fslog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3843,6 +3843,8 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
38433843

38443844
memset(&rst_info2, 0, sizeof(struct restart_info));
38453845
err = log_read_rst(log, l_size, false, &rst_info2);
3846+
if (err)
3847+
goto out;
38463848

38473849
/* Determine which restart area to use. */
38483850
if (!rst_info2.restart || rst_info2.last_lsn <= rst_info.last_lsn)

0 commit comments

Comments
 (0)