diff options
author | Namjae Jeon | 2022-05-30 18:43:01 +0300 |
---|---|---|
committer | Konstantin Komarov | 2022-05-31 17:29:29 +0300 |
commit | f26967b9f7a830e228bb13fb41bd516ddd9d789d (patch) | |
tree | b5ba4fcc3c18f14c8695cc89c4032e4862921a65 /fs/super.c | |
parent | 03ab8e6297acd1bc0eedaa050e2a1635c576fd11 (diff) |
fs/ntfs3: Fix invalid free in log_replay
log_read_rst() returns ENOMEM error when there is not enough memory.
In this case, if info is returned without initialization,
it attempts to kfree the uninitialized info->r_page pointer. This patch
moves the memset initialization code to before log_read_rst() is called.
Reported-by: Gerald Lee <sundaywind2004@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/super.c')
0 files changed, 0 insertions, 0 deletions