Re: [PATCH] mtd: rawnand: marvell: Fix potential DMA buffer leak
From: Miquel Raynal
Date: Tue Nov 17 2026 - 09:24:02 EST
On Tue, 10 Nov 2026 22:32:24 +0800, Guangshuo Li wrote:
> The bounce buffer allocated by marvell_nfc_init_dma() is not freed on
> probe failure or removal. Releasing the controller loses the buffer.
>
> Use a device-managed allocation so the buffer is freed after the DMA
> channel has been shut down.
>
> This issue was found by our static analysis tool under development.
>
> [...]
Applied to nand/next, thanks!
[1/1] mtd: rawnand: marvell: Fix potential DMA buffer leak
commit: f39045da527565bc58171ad6c88ee4be4771fb62
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