Files
linux/drivers/mtd/ubi
Zhihao Cheng 9a51a86041 ubi: fastmap: Free fastmap next anchor peb during detach
[ Upstream commit c3fc1a3919 ]

ubi_wl_entry related with the fm_next_anchor PEB is not freed during
detach, which causes a memory leak.
Don't forget to release fm_next_anchor PEB while detaching ubi from
mtd when CONFIG_MTD_UBI_FASTMAP is enabled.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Fixes: 4b68bf9a69 ("ubi: Select fastmap anchor PEBs considering...")
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-21 13:15:13 +02:00
..
2019-11-17 22:45:57 +01:00