[PATCH] mtd: maps: pcmciamtd: fix potential memory leak in pcmciamtd_detach()

Miquel Raynal miquel.raynal at bootlin.com
Mon Nov 17 02:54:34 PST 2025


On Mon, 03 Nov 2025 20:51:39 +0530, Abdun Nihaal wrote:
> The memory allocated for struct pcmciamtd_dev in pcmciamtd_probe() is
> not freed in the corresponding remove function pcmciamtd_detach().
> Fix that by freeing it in the remove function.
> 
> 

Applied to mtd/next, thanks!

[1/1] mtd: maps: pcmciamtd: fix potential memory leak in pcmciamtd_detach()
      commit: a697c671cc317aac3714ac735a336346af15d025

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl



More information about the linux-mtd mailing list