linux/drivers/mtd/nand/raw/atmel
Dan Carpenter d8e4771f99 mtd: rawnand: fix double free in atmel_pmecc_create_user()
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: 6d734f1bfc ("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>
2024-12-05 11:06:43 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
nand-controller.c mtd: Switch back to struct platform_driver::remove() 2024-10-21 11:58:07 +02:00
pmecc.c mtd: rawnand: fix double free in atmel_pmecc_create_user() 2024-12-05 11:06:43 +01:00
pmecc.h mtd: rawnand: atmel: Fix possible memory leak 2024-10-21 11:24:28 +02:00