Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fs/ntfs3: Fix invalid free in log_replay
commit f26967b upstream. 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 <[email protected]> Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Konstantin Komarov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information