diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2022-06-06 17:57:21 +0200 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2022-06-17 18:18:29 +0200 |
commit | f759942b72a9ad309282b2fedcebcee3c4c58e24 (patch) | |
tree | ce870bc9d55060c49e68d0f1954a0bbd8e422bda /fs | |
parent | fs/ntfs3: Don't clear upper bits accidentally in log_replay() (diff) | |
download | linux-f759942b72a9ad309282b2fedcebcee3c4c58e24.tar.xz linux-f759942b72a9ad309282b2fedcebcee3c4c58e24.zip |
fs/ntfs3: Add missing error check
We must check return value of log_read_rst
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ntfs3/fslog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ntfs3/fslog.c b/fs/ntfs3/fslog.c index 614513460b8e..e7c494005122 100644 --- a/fs/ntfs3/fslog.c +++ b/fs/ntfs3/fslog.c @@ -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) |