kernel_samsung_a53x/drivers/mtd
Dan Carpenter 622192507e mtd: rawnand: fix double free in atmel_pmecc_create_user()
commit d8e4771f99c0400a1873235704b28bb803c83d17 upstream.

The "user" pointer was converted from being allocated with kzalloc() to
being allocated by devm_kzalloc().  Calling kfree(user) will lead to a
double free.

Fixes: 6d734f1bfc33 ("mtd: rawnand: atmel: Fix possible memory leak")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-15 16:29:50 +01:00
..
chips
devices Revert "mtd: slram: insert break after errors in parsing the map" 2024-11-24 00:23:27 +01:00
hyperbus
lpddr
maps
nand mtd: rawnand: fix double free in atmel_pmecc_create_user() 2025-01-15 16:29:50 +01:00
parsers mtd: partitions: redboot: Added conversion of operands to a larger type 2024-11-19 14:19:32 +01:00
spi-nor
tests mtd: make mtd_test.c a separate module 2024-11-23 23:20:10 +01:00
ubi ubi: fastmap: Fix duplicate slab cache names while attaching 2024-12-17 13:24:21 +01:00
ftl.c
inftlcore.c
inftlmount.c
Kconfig
Makefile
mtd_blkdevs.c
mtdblock.c
mtdblock_ro.c
mtdchar.c
mtdconcat.c
mtdcore.c
mtdcore.h
mtdoops.c
mtdpart.c
mtdpstore.c
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c