Skip to content

Commit

Permalink
fs/ntfs3: Add missing error check
Browse files Browse the repository at this point in the history
We must check return value of log_read_rst

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
  • Loading branch information
Konstantin Komarov committed Jun 17, 2022
1 parent 9260343 commit f759942
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ntfs3/fslog.c
Original file line number Diff line number Diff line change
Expand Up @@ -3843,6 +3843,8 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)

memset(&rst_info2, 0, sizeof(struct restart_info));
err = log_read_rst(log, l_size, false, &rst_info2);
if (err)
goto out;

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

0 comments on commit f759942

Please sign in to comment.