diff options
| author | Haotian Zhang <vulab@iscas.ac.cn> | 2025-11-24 00:35:51 +0800 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2025-11-28 09:11:59 +0100 |
| commit | a3623e1ae1ed6be4d49b2ccb9996a9d2b65c1828 (patch) | |
| tree | 4d43a314c5e5b377610d1b4a38783b016b3d5ea4 /tools/lib/python/kdoc/kdoc_re.py | |
| parent | 41bdec133dc0b79e152f8dda0bf2f71a5abb5838 (diff) | |
mtd: rawnand: renesas: Handle devm_pm_runtime_enable() errors
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.
Fixes: 6a2277a0ebe7 ("mtd: rawnand: renesas: Use runtime PM instead of the raw clock API")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions
