cpufreq: OMAP: use RCU locks around usage of OPP
authorNishanth Menon <nm@ti.com>
Fri, 18 Jan 2013 19:52:32 +0000 (19:52 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Jan 2013 12:28:39 +0000 (13:28 +0100)
commitf44d188acdca1a34e4439ca6a173f85086e0e655
treeaf5fe5cd356ec1ee834dd1125b6bdc408402bd2f
parent25216865392a6e1f3032855aee7407de1fe0b70c
cpufreq: OMAP: 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: Alexander Holler <holler@ahsoftware.de>
Tested-by: Alexander Holler <holler@ahsoftware.de>
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/omap-cpufreq.c