Re: [PATCH] mtd: intel-dg: Fix runtime PM error path in probe

From: Miquel Raynal

Date: Fri Jul 17 2026 - 11:56:39 EST


On Sun, 05 Jul 2026 11:31:07 +0800, Guangshuo Li wrote:
> intel_dg_mtd_probe() allocates region names before enabling runtime PM
> and before calling pm_runtime_resume_and_get().
>
> If kasprintf() fails while building a region name, the error path jumps
> to err, which calls pm_runtime_put(). At that point there has not been a
> successful pm_runtime_resume_and_get() call to balance, so the runtime PM
> usage count can underflow.
>
> [...]

Applied to mtd/next, thanks!

[1/1] mtd: intel-dg: Fix runtime PM error path in probe
commit: df6f582df3377af316a60ca8ee0d590b2d03924d

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