Re: [PATCH] mtd: inftl: Fix potential table leaks on mount failure

From: Miquel Raynal

Date: Tue Nov 17 2026 - 08:37:45 EST


On Wed, 11 Nov 2026 20:23:12 +0800, Guangshuo Li wrote:
> If the temporary ANAC table allocation fails, the unit tables allocated
> by find_boot_record() are left behind when the caller frees the INFTL
> record. Free both tables before returning the error.
>
> This issue was found by our static analysis tool under development.
>
>
> [...]

Applied to mtd/next, thanks!

[1/1] mtd: inftl: Fix potential table leaks on mount failure
commit: dd4e68b5061efb56eea093b6a9b7a6da49efda07

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