opp: Call the missing clk_put() on error
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 28 Dec 2020 05:21:04 +0000 (10:51 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 28 Dec 2020 05:26:22 +0000 (10:56 +0530)
commit0e1d9ca1766f5d95fb881f57b6c4a1ffa63d4648
tree66dbf8c4b0bb05eff4f6e35ad009bfc07b75a134
parent976509bb310b913d30577f15b58bdd30effb0542
opp: Call the missing clk_put() on error

Fix the clock reference counting by calling the missing clk_put() in the
error path.

Cc: v5.10 <stable@vger.kernel.org> # v5.10
Fixes: dd461cd9183f ("opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c