]> www.infradead.org Git - users/jedix/linux-maple.git/commit
OPP: Fix missing cleanup on error in _opp_attach_genpd()
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 28 May 2024 05:28:37 +0000 (10:58 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 28 May 2024 06:24:29 +0000 (11:54 +0530)
commitd86a2f0800683652004490c590b4b96a63e7fc04
treecea8fbb806e8963723669fb5a8418ccfc5fa5bd0
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
OPP: Fix missing cleanup on error in _opp_attach_genpd()

A recent commit updated the code mistakenly to return directly on
errors, without doing the required cleanups. Fix it.

Fixes: 2a56c462fe5a ("OPP: Fix required_opp_tables for multiple genpds using same table")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202405180016.4fbn86bm-lkp@intel.com/
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c