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

Miquel Raynal miquel.raynal at bootlin.com
Tue Nov 17 05:37:36 PST 2026


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




More information about the linux-mtd mailing list