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

From: Miquel Raynal
Date: Mon Nov 17 2025 - 05:54:57 EST


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