linux/drivers/hwspinlock
Haotian Zhang 6cc29c7148 hwspinlock: omap: Handle devm_pm_runtime_enable() errors
[ Upstream commit 3bd4edd67b ]

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: 25f7d74d45 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-02-26 14:59:09 -08:00
..
hwspinlock_core.c hwspinlock: Remove unused hwspin_lock_get_id() 2025-03-21 17:12:04 -05:00
hwspinlock_internal.h hwspinlock: Introduce hwspin_lock_bust() 2024-05-29 12:52:26 -07:00
Kconfig hwspinlock: add sun6i hardware spinlock support 2021-05-27 22:19:42 -05:00
Makefile hwspinlock: add sun6i hardware spinlock support 2021-05-27 22:19:42 -05:00
omap_hwspinlock.c hwspinlock: omap: Handle devm_pm_runtime_enable() errors 2026-02-26 14:59:09 -08:00
qcom_hwspinlock.c hwspinlock: qcom: implement bust operation 2024-05-29 12:52:26 -07:00
sprd_hwspinlock.c hwspinlock: sprd: Use struct_size() helper in devm_kzalloc() 2022-03-11 14:56:57 -06:00
stm32_hwspinlock.c hwspinlock: stm32: Use struct_size() helper in devm_kzalloc() 2022-03-11 14:56:15 -06:00
sun6i_hwspinlock.c hwspinlock: add sun6i hardware spinlock support 2021-05-27 22:19:42 -05:00
u8500_hsem.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00