]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit629a85a8d1f21c84b3349df85b81efe8da424ed5
tree66dbf8c4b0bb05eff4f6e35ad009bfc07b75a134
parentb2702ccb34b5c6a95da24a9a0745e5727323be56
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: 2253537dd368 ("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