Skip to content
Unverified Commit f26967b9 authored by Namjae Jeon's avatar Namjae Jeon Committed by Konstantin Komarov
Browse files

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: default avatarGerald Lee <sundaywind2004@gmail.com>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
Signed-off-by: default avatarKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
parent 03ab8e62
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment