[PATCH] mtd: rawnand: renesas: Handle devm_pm_runtime_enable() errors

Miquel Raynal miquel.raynal at bootlin.com
Sat Nov 29 04:43:07 PST 2025


On Mon, 24 Nov 2025 00:35:51 +0800, Haotian Zhang wrote:
> devm_pm_runtime_enable() can fail due to memory allocation failures.
> The current code ignores its return value and proceeds with
> pm_runtime_resume_and_get(), which may operate on incorrectly
> initialized runtime PM state.
> 
> Check the return value of devm_pm_runtime_enable() and return the
> error code if it fails.
> 
> [...]

Applied to nand/next after fixing the spacing, thanks!

[1/1] mtd: rawnand: renesas: Handle devm_pm_runtime_enable() errors
      commit: a3623e1ae1ed6be4d49b2ccb9996a9d2b65c1828

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