PM / OPP: Don't use OPP structure outside of rcu protected section
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 1 Dec 2016 10:58:16 +0000 (16:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jan 2017 09:40:15 +0000 (10:40 +0100)
commit7ac62bcde2d417777a40ced09d958f99ed9009c9
tree30b5565f43a43507ec972fee2aca2a6cbffb6e99
parentc7a8a0ac8fee26d3c20402da306a17bcbbbb367b
PM / OPP: Don't use OPP structure outside of rcu protected section

commit dc39d06fcd7a4a82d72eae7b71e94e888b96d29e upstream.

The OPP structure must not be used out of the rcu protected section.
Cache the values to be used in separate variables instead.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/power/opp/core.c