android_kernel_sony_sdm845/drivers/mtd/devices
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Wen Yang bed37eb481 mtd: phram: fix a double free issue in error path
commit 49c64df880570034308e4a9a49c4bc95cf8cdb33 upstream.

The variable 'name' is released multiple times in the error path,
which may cause double free issues.
This problem is avoided by adding a goto label to release the memory
uniformly. And this change also makes the code a bit more cleaner.

Fixes: 4f678a58d3 ("mtd: fix memory leaks in phram_setup")
Signed-off-by: Wen Yang <wenyang@linux.alibaba.com>
Cc: Joern Engel <joern@lazybastard.org>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Cc: linux-mtd@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200318153156.25612-1-wenyang@linux.alibaba.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-24 07:59:15 +02:00
..
bcm47xxsflash.c
bcm47xxsflash.h
block2mtd.c
docg3.c
docg3.h
Kconfig mtd: docg3: don't set conflicting BCH_CONST_PARAMS option 2018-11-21 09:26:00 +01:00
lart.c
m25p80.c mtd: m25p80: consider max message size in m25p80_read 2018-07-22 14:27:35 +02:00
Makefile
ms02-nv.c
ms02-nv.h
mtd_dataflash.c
mtdram.c
phram.c mtd: phram: fix a double free issue in error path 2020-04-24 07:59:15 +02:00
pmc551.c
powernv_flash.c
serial_flash_cmds.h
slram.c
spear_smi.c mtd: spear_smi: Fix Write Burst mode 2019-12-21 10:41:56 +01:00
sst25l.c
st_spi_fsm.c