android_kernel_motorola_sm6375/drivers/mtd
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Miquel Raynal 22fbbc37ed mtd: rawnand: atmel: Fix possible memory leak
[ Upstream commit 6d734f1bfc336aaea91313a5632f2f197608fadd ]

The pmecc "user" structure is allocated in atmel_pmecc_create_user() and
was supposed to be freed with atmel_pmecc_destroy_user(), but this other
helper is never called. One solution would be to find the proper
location to call the destructor, but the trend today is to switch to
device managed allocations, which in this case fits pretty well.

Replace kzalloc() by devm_kzalloc() and drop the destructor entirely.

Reported-by: "Dr. David Alan Gilbert" <[email protected]>
Closes: https://lore.kernel.org/all/ZvmIvRJCf6VhHvpo@gallifrey/
Fixes: f88fc122cc ("mtd: nand: Cleanup/rework the atmel_nand driver")
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Signed-off-by: Sasha Levin <[email protected]>
2024-12-14 19:44:29 +01:00
..
chips mtd: cfi_cmdset_0001: Byte swap OTP info 2023-12-08 08:44:27 +01:00
devices mtd: powernv: Add check devm_kasprintf() returned value 2024-11-08 16:20:28 +01:00
hyperbus
lpddr
maps mtd: maps: physmap-core: fix flash size larger than 32-bit 2024-03-26 18:22:21 -04:00
nand mtd: rawnand: atmel: Fix possible memory leak 2024-12-14 19:44:29 +01:00
parsers mtd: partitions: redboot: Added conversion of operands to a larger type 2024-07-05 09:08:27 +02:00
spi-nor spi: cadence-quadspi: fix suspend-resume implementations 2023-05-17 11:35:48 +02:00
tests mtd: make mtd_test.c a separate module 2024-08-19 05:33:33 +02:00
ubi ubi: eba: properly rollback inside self_check_eba 2024-08-19 05:33:38 +02:00
ftl.c
inftlcore.c
inftlmount.c
Kconfig
Makefile
mtd_blkdevs.c mtd: Fix gluebi NULL pointer dereference caused by ftl notifier 2024-01-25 14:34:23 -08:00
mtdblock.c
mtdblock_ro.c
mtdchar.c
mtdconcat.c
mtdcore.c
mtdcore.h
mtdoops.c
mtdpart.c
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c