diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-09-28 13:07:29 -0700 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2026-10-12 20:18:23 +0200 |
| commit | 104f277e8a469f71ac3c74a0e9ebb8bf64c3fa06 (patch) | |
| tree | 4e414fe08c13e0dc08180f35a5c74ad6222e2720 /scripts/Makefile.thinlto | |
| parent | 94623942a66e031826756f9c92dbde9a12e2b4d2 (diff) | |
| download | linux-104f277e8a469f71ac3c74a0e9ebb8bf64c3fa06.tar.gz linux-104f277e8a469f71ac3c74a0e9ebb8bf64c3fa06.zip | |
mtd: rawnand: fsl_ifc: allocate shared ctrl with devm_kzalloc
Allocate the shared fsl_ifc_nand_ctrl structure against the controller
device, which outlives all NAND child devices, so it is freed
automatically. This drops the manual kfree() and the broken chip
counter that was decremented in remove() but never incremented
anywhere, leaking the structure and leaving the freed pointer in
ctrl->nand on re-probe.
Assisted-by: LLM
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
