linux-stable/drivers/mtd
Zheng Yongjun 932baf593e 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>
2022-12-31 13:26:02 +01:00
..
chips mtd: cfi_cmdset_0002: Rename chip_ready variables 2022-04-28 10:17:22 +02:00
devices mtd: devices: docg3: check the return value of devm_ioremap() in the probe 2022-10-21 12:38:45 +02:00
hyperbus mtd: hyperbus: rpc-if: Fix RPM imbalance in probe error path 2022-06-24 20:47:36 +02:00
lpddr mtd: lpddr2_nvm: Fix possible null-ptr-deref 2022-12-31 13:25:59 +01:00
maps mtd: maps: pxa2xx-flash: fix memory leak in probe 2022-12-31 13:26:02 +01:00
nand mtd: onenand: omap2: add dependency on GPMC 2022-11-26 09:27:28 +01:00
parsers mtd: parsers: bcm47xxpart: Fix halfblock reads 2022-11-04 00:00:19 +09:00
spi-nor mtd: spi-nor: Fix the number of bytes for the dummy cycles 2022-12-31 13:26:00 +01:00
tests mtd: tests: Fix eraseblock read speed miscalculation for lower partition sizes 2022-03-14 17:01:47 +01:00
ubi block: remove blk_cleanup_disk 2022-06-28 06:33:15 -06:00
ftl.c
inftlcore.c
inftlmount.c
Kconfig
Makefile
mtd_blkdevs.c block: remove blk_cleanup_disk 2022-06-28 06:33:15 -06:00
mtdblock.c mtdblock: warn if opened on NAND 2022-04-25 10:43:12 +02:00
mtdblock_ro.c
mtdchar.c mtdchar: use kvmalloc() for potentially large allocations 2022-06-09 15:03:32 +02:00
mtdconcat.c
mtdcore.c mtd: core: Fix refcount error in del_mtd_device() 2022-12-31 13:26:02 +01:00
mtdcore.h
mtdoops.c mtd: mtdoops: Add a timestamp to the mtdoops header. 2022-04-26 09:27:12 +02:00
mtdpart.c mtd: call of_platform_populate() for MTD partitions 2022-05-16 18:37:48 +02:00
mtdpstore.c
mtdsuper.c
mtdswap.c block: remove genhd.h 2022-02-02 07:49:59 -07:00
nftlcore.c
nftlmount.c
rfd_ftl.c
sm_ftl.c mtd: sm_ftl: Fix deadlock caused by cancel_work_sync in sm_release 2022-06-09 15:03:23 +02:00
sm_ftl.h
ssfdc.c