linux-stable/drivers/mtd
Zheng Yongjun cb3f35f448 mtd: maps: pxa2xx-flash: fix memory leak in probe
[ Upstream commit 2399401fee ]

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-07 12:07:17 +01:00
..
chips mtd: cfi_cmdset_0002: Use chip_ready() for write on S29GL064N 2022-06-14 16:52:41 +02:00
devices mtd: phram: fix a double free issue in error path 2020-04-24 07:59:15 +02:00
lpddr mtd: lpddr2_nvm: Fix possible null-ptr-deref 2023-01-07 12:07:17 +01:00
maps mtd: maps: pxa2xx-flash: fix memory leak in probe 2023-01-07 12:07:17 +01:00
nand mtd: rawnand: Fix return value check of wait_for_completion_timeout 2022-05-12 12:14:55 +02:00
onenand mtd: onenand: Check for error irq 2022-04-20 09:06:34 +02:00
spi-nor mtd: spi-nor: hisi-sfc: Remove excessive clk_disable_unprepare() 2021-11-26 11:48:38 +01:00
tests
ubi ubi: fastmap: Return error code if memory allocation fails in add_aeb() 2022-04-20 09:06:41 +02:00
Kconfig
Makefile
afs.c
ar7part.c
bcm47xxpart.c
bcm63xxpart.c
cmdlinepart.c mtd: parser: cmdline: Fix parsing of part-names with colons 2020-12-29 13:45:07 +01:00
ftl.c
inftlcore.c
inftlmount.c
mtd_blkdevs.c
mtdblock.c
mtdblock_ro.c
mtdchar.c mtd: require write permissions for locking and badblock ioctls 2021-05-22 10:40:23 +02:00
mtdconcat.c
mtdcore.c mtd: Fix device name leak when register device failed in add_mtd_device() 2023-01-07 12:07:16 +01:00
mtdcore.h mtd: Check add_mtd_device() ret code 2019-12-05 15:35:06 +01:00
mtdoops.c mtd: mtdoops: Don't write panic data twice 2020-10-29 09:05:38 +01:00
mtdpart.c mtd: Remove a debug trace in mtdpart.c 2019-12-05 15:35:18 +01:00
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
ofpart.c
redboot.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c