android_kernel_motorola_sm6225/drivers/mtd/maps
Zheng Yongjun 6fa9550ef3 mtd: maps: pxa2xx-flash: fix memory leak in probe
[ Upstream commit 2399401feee27c639addc5b7e6ba519d3ca341bf ]

Free 'info' upon remapping error to avoid a memory leak.

Fixes: e644f7d628 ("[MTD] MAPS: Merge Lubbock and Mainstone drivers into common PXA2xx driver")
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
[<miquel.raynal@bootlin.com>: Reword the commit log]
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20221119073307.22929-1-zhengyongjun3@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:30:12 +01:00
..
amd76xrom.c
cfi_flagadm.c
ck804xrom.c
dc21285.c
esb2rom.c
gpio-addr-flash.c
ichxrom.c
impa7.c
intel_vr_nor.c
ixp4xx.c
Kconfig
l440gx.c
lantiq-flash.c
latch-addr-flash.c
Makefile
map_funcs.c
netsc520.c
nettel.c
pci.c
pcmciamtd.c
physmap.c
physmap_of_core.c
physmap_of_gemini.c
physmap_of_gemini.h
physmap_of_versatile.c
physmap_of_versatile.h
pismo.c
plat-ram.c
pmcmsp-flash.c
pxa2xx-flash.c mtd: maps: pxa2xx-flash: fix memory leak in probe 2023-01-18 11:30:12 +01:00
rbtx4939-flash.c
sa1100-flash.c
sbc_gxx.c
sc520cdp.c
scb2_flash.c
scx200_docflash.c
solutionengine.c
sun_uflash.c
ts5500_flash.c
tsunami_flash.c
uclinux.c
vmu-flash.c