android_kernel_motorola_sm6375/drivers/mtd
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hou Tao ca1704f177 ubi: fastmap: Free unused fastmap anchor peb during detach
[ Upstream commit c16f39d14a7e0ec59881fbdb22ae494907534384 ]

When CONFIG_MTD_UBI_FASTMAP is enabled, fm_anchor will be assigned
a free PEB during ubi_wl_init() or ubi_update_fastmap(). However
if fastmap is not used or disabled on the MTD device, ubi_wl_entry
related with the PEB will not be freed during detach.

So Fix it by freeing the unused fastmap anchor during detach.

Fixes: f9c34bb52997 ("ubi: Fix producing anchor PEBs")
Reported-by: [email protected]
Reviewed-by: Sascha Hauer <[email protected]>
Signed-off-by: Hou Tao <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2020-10-01 13:18:11 +02:00
..
chips mtd: cfi_cmdset_0002: don't free cfi->cfiq in error path of cfi_amdstd_setup() 2020-10-01 13:17:16 +02:00
devices mtd: phram: fix a double free issue in error path 2020-04-23 10:36:45 +02:00
hyperbus
lpddr mtd: lpddr: Fix a double free in probe() 2020-04-23 10:36:45 +02:00
maps
nand mtd: rawnand: omap_elm: Fix runtime PM imbalance on error 2020-10-01 13:18:07 +02:00
parsers mtd: parser: cmdline: Support MTD names containing one or more colons 2020-10-01 13:18:08 +02:00
spi-nor
tests
ubi ubi: fastmap: Free unused fastmap anchor peb during detach 2020-10-01 13:18:11 +02:00
ftl.c
inftlcore.c
inftlmount.c
Kconfig
Makefile
mtd_blkdevs.c
mtdblock.c
mtdblock_ro.c
mtdchar.c mtd: properly check all write ioctls for permissions 2020-08-11 15:33:35 +02:00
mtdconcat.c
mtdcore.c mtd: Fix mtd not registered due to nvmem name collision 2020-05-27 17:46:22 +02:00
mtdcore.h
mtdoops.c
mtdpart.c
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c