]> git.baikalelectronics.ru Git - kernel.git/commit
devfreq: exynos: Don't use OPP structures outside of RCU locks
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 1 Dec 2016 10:25:40 +0000 (15:55 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Dec 2016 00:46:06 +0000 (01:46 +0100)
commitcd942c6d976743004f381af54799cd5468d7bb30
tree8734984b6eb9c2043e519d95e4e6906b96943953
parentf9992aad61983f721193b833ff6e69873d528c96
devfreq: exynos: Don't use OPP structures outside of RCU locks

The OPP structures are abused to the best here, without understanding
how the OPP core and RCU locks work.

In short, the OPP pointer saved 'struct exynos_bus' can become invalid
under your nose, as the OPP core may free it.

Fix various abuses around OPP structures and calls.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/devfreq/exynos-bus.c