Re: [PATCH v2] mtd: virt-concat: free duplicate generated name

From: Miquel Raynal

Date: Mon Jul 06 2026 - 03:57:47 EST


On Fri, 26 Jun 2026 10:13:38 +0800, raoxu wrote:
> Every MTD registration runs mtd_virt_concat_create_join(). Once a
> virtual concat has already been registered, the function builds the same
> name again and takes the equal-name branch. That branch skips to the
> next item without freeing the newly allocated string.
>
> Free the temporary name before continuing.
>
> [...]

Applied to mtd/fixes, thanks!

[1/1] mtd: virt-concat: free duplicate generated name
commit: caa0ecbeff4f7fbf70f22bd8ca598918bffb1b78

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