Hyeongseok Kim 9c14fb58a1 f2fs: fix double free of unicode map
[ Upstream commit 89ff6005039a878afac87889fee748fa3f957c3a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:31 +01:00
..
2020-09-14 11:15:37 -07:00
2020-09-14 11:15:37 -07:00
2020-10-16 15:14:43 -07:00
2020-09-14 11:15:37 -07:00
2020-06-09 11:28:59 -07:00
2020-09-14 11:15:37 -07:00
2020-01-17 16:48:07 -08:00
2020-10-16 15:14:43 -07:00
2020-05-11 20:36:46 -07:00
2020-12-26 16:02:42 +01:00
2020-03-10 09:18:33 -07:00
2020-12-30 11:53:31 +01:00
2020-09-14 11:15:37 -07:00