Files
linux/drivers/clk
Wentao Liang 36eb51ac8b clk: qcom: Fix missing error check for dev_pm_domain_attach()
In the current implementation, the return value of dev_pm_domain_attach()
is not checked. This can lead to silent failures if the function fails,
as the code would continue execution and return 0, ignoring the error.

This patch adds a check for the return value of dev_pm_domain_attach().
If the function fails, an error message is logged using dev_err_probe(),
and the error is propagated to the existing error handling path `err`,
which ensures proper cleanup by calling clk_notifier_unregister().

Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://lore.kernel.org/r/20250211092017.562-1-vulab@iscas.ac.cn
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
2025-04-15 21:37:39 -05:00
..
2025-03-14 16:20:23 +01:00
2025-03-07 11:05:01 -08:00
2024-08-02 16:53:38 -07:00
2024-08-27 12:11:45 -07:00
2024-10-17 12:02:42 -07:00