Re: [PATCH] mtd: rawnand: ndfc: use devm_kasprintf for mtd name
From: Miquel Raynal
Date: Fri Sep 25 2026 - 09:38:41 EST
On Wed, 09 Sep 2026 15:35:21 -0700, Rosen Penev wrote:
> Convert the mtd->name allocation from kasprintf() plus a manual kfree()
> in the error path and in ndfc_remove() to the managed
> devm_kasprintf() helper. The name is now released automatically with
> the device, removing the need for explicit cleanup.
>
>
Applied to nand/next, thanks!
[1/1] mtd: rawnand: ndfc: use devm_kasprintf for mtd name
commit: 5e73728a875a91fb2c7dc527f7391da0205f85b1
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