Re: [PATCH] mtd: rawnand: atmel: Fix MCK clock leak in atmel_nand_controller_init()
From: Miquel Raynal
Date: Fri Sep 25 2026 - 09:39:06 EST
On Thu, 17 Sep 2026 10:29:24 +0000, Wentao Liang wrote:
> atmel_nand_controller_init() takes a reference to the MCK clock with
> of_clk_get() and keeps it in nc->mck for the lifetime of the
> controller. If the "atmel,smc" phandle is missing or the SMC regmap
> cannot be obtained afterwards, the error path jumps to out_release_dma
> which only releases the DMA channel, so the clock reference is leaked.
> The callers return the error directly and never run
> atmel_nand_controller_cleanup(), where the clock is normally put.
>
> [...]
Applied to nand/next, thanks!
[1/1] mtd: rawnand: atmel: Fix MCK clock leak in atmel_nand_controller_init()
commit: 94edcda45d888c3bb1310de11e10e4537c166f00
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