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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Jan 2021 13:56:49 +0000 (14:56 +0100)
commit1a58c171a523d2224fe12fb26fc459231f245b0d
tree78f2a98678611324f019cde3428aa5c073c4f93a
parente8322837a2e56d6b8d4b87d81292805948991e2c
opp: Call the missing clk_put() on error

commit 0e1d9ca1766f5d95fb881f57b6c4a1ffa63d4648 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/opp/core.c