diff options
| author | Haotian Zhang <vulab@iscas.ac.cn> | 2025-11-24 13:48:05 +0300 |
|---|---|---|
| committer | Kevin Hilman <khilman@baylibre.com> | 2026-01-15 01:36:55 +0300 |
| commit | 3bd4edd67b034f8e1f61c86e0eb098de6179e3f2 (patch) | |
| tree | 03cc21165f03a206c203ef231bc50b5b3b50ab20 /include/linux/platform_data | |
| parent | 5e2d6fa48a841e419848a811a015f61128a149ce (diff) | |
| download | linux-3bd4edd67b034f8e1f61c86e0eb098de6179e3f2.tar.xz | |
hwspinlock: omap: Handle devm_pm_runtime_enable() errors
Although unlikely, devm_pm_runtime_enable() can fail due to memory
allocations. Without proper error handling, the subsequent
pm_runtime_resume_and_get() call may operate on incorrectly
initialized runtime PM state.
Add error handling to check the return value of
devm_pm_runtime_enable() and return on failure.
Fixes: 25f7d74d4514 ("hwspinlock: omap: Use devm_pm_runtime_enable() helper")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20251124104805.135-1-vulab@iscas.ac.cn
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
