Commit 71f47a52 authored by Alexandra Diupina's avatar Alexandra Diupina Committed by Greg Kroah-Hartman
Browse files

cpufreq: scmi: process the result of devm_of_clk_add_hw_provider()



[ Upstream commit c4a5118a ]

devm_of_clk_add_hw_provider() may return an errno, so
add a return value check

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 8410e7f3 ("cpufreq: scmi: Fix OPP addition failure with a dummy clock provider")
Signed-off-by: default avatarAlexandra Diupina <adiupina@astralinux.ru>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 04fc66dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment