OSDN Git Service

OPP: Free OPP table properly on performance state irregularities
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 11 Sep 2018 05:44:34 +0000 (11:14 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 19 Sep 2018 21:56:39 +0000 (14:56 -0700)
commit2fbb8670b4ff4454f1c0de510f788d737edc4b90
tree17de0e50d6bb7a8926055506809f99407f9699d7
parent7876320f88802b22d4e2daf7eb027dd14175a0f8
OPP: Free OPP table properly on performance state irregularities

The OPP table was freed, but not the individual OPPs which is done from
_dev_pm_opp_remove_table(). Fix it by calling _dev_pm_opp_remove_table()
as well.

Cc: 4.18 <stable@vger.kernel.org> # v4.18
Fixes: 3ba98324e81a ("PM / OPP: Get performance state using genpd helper")
Tested-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/of.c