cpufreq: cpufreq-cpu0: use RCU locks around usage of OPP
authorNishanth Menon <nm@ti.com>
Fri, 18 Jan 2013 19:52:33 +0000 (19:52 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Jan 2013 12:28:39 +0000 (13:28 +0100)
commit78e8eb8feab7d85f4cc215afe1457a228bf4eed9
tree409aa5ca48b0ee458c5a55956ca4c73dc44d2819
parentf44d188acdca1a34e4439ca6a173f85086e0e655
cpufreq: cpufreq-cpu0: use RCU locks around usage of OPP

OPP pointer is RCU protected, hence after finding it, de-reference
also should be protected with the same RCU context else the OPP
pointer may become invalid.

Reported-by: Jack Mitchell <jack@embed.me.uk>
Tested-by: Alexander Holler <holler@ahsoftware.de>
Tested-by: Jack Mitchell <jack@embed.me.uk>
Acked-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq-cpu0.c