PM / OPP: Hold dev_opp_list_lock for writers
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 5 Nov 2015 08:51:20 +0000 (14:21 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 6 Nov 2015 22:59:41 +0000 (23:59 +0100)
commit4a3a1353a84796f93d389694e3b87ede533953fe
treef08505c56b832ba502db242a081ad06757ec2451
parent87b4115db0239865bc812f61704bb1f43e2439b6
PM / OPP: Hold dev_opp_list_lock for writers

Writers need to update OPP device and their list with dev_opp_list_lock
mutex held, which was missed at few places. Fix it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: 4.3 <stable@vger.kernel.org> # 4.3
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/core.c