commit | a82e016519efb8532e21ddbc6f54733038b21482 | [log] [tgz] |
---|---|---|
author | Hyeongseok Kim <hyeongseok@gmail.com> | Thu Nov 12 18:14:54 2020 +0900 |
committer | Jaegeuk Kim <jaegeuk@google.com> | Mon Dec 21 13:33:12 2020 -0800 |
tree | 2a590f6d59cdc008b106976ed57495e80ffd1582 | |
parent | 7bf39237aa7136dd6f1ace671cdc7b0421b2e914 [diff] |
f2fs: fix double free of unicode map In case of retrying fill_super with skip_recovery, s_encoding for casefold would not be loaded again even though it's already been freed because it's not NULL. Set NULL after free to prevent double freeing when unmount. Fixes: eca4873ee1b6 ("f2fs: Use generic casefolding support") Signed-off-by: Hyeongseok Kim <hyeongseok@gmail.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>