PM / devfreq: missing rcu_read_lock() added for find_device_opp()
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 21 Nov 2012 10:04:51 +0000 (19:04 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 26 Nov 2012 10:17:46 +0000 (19:17 +0900)
commit389baed01edd298c9622c6e28de5e7e250c8767d
treeb15058d96fe7c10738f9cc4efa083897add5f7ac
parent883d588e556347c4b3221ac492a8acd8a75e730a
PM / devfreq: missing rcu_read_lock() added for find_device_opp()

opp_get_notifier() uses find_device_opp(), which requires to
held rcu_read_lock. In order to keep the notifier-header
valid, we have added rcu_read_lock().

Reported-by: Kees Cook <keescook@chromium.org>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/devfreq.c