aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorViresh Kumar <[email protected]>2013-09-20 22:37:31 +0530
committerRafael J. Wysocki <[email protected]>2013-09-25 03:24:02 +0200
commit26ca8694344af4c833d22590c5b77d6b9cff0722 (patch)
tree9809302f3fd16f12e722d6eccb0873f767f6f67f /tools/perf/util/scripting-engines/trace-event-python.c
parent8a61e12e84597b5f8155ac91b44dea866ccfaac2 (diff)
cpufreq: check cpufreq driver is valid and cpufreq isn't disabled in cpufreq_get()
cpufreq_get() can be called from external drivers which might not be aware if cpufreq driver is registered or not. And so we should actually check if cpufreq driver is registered or not and also if cpufreq is active or disabled, at the beginning of cpufreq_get(). Otherwise call to lock_policy_rwsem_read() might hit BUG_ON(!policy). Reported-and-tested-by: Linus Walleij <[email protected]> Signed-off-by: Viresh Kumar <[email protected]> Reviewed-by: Srivatsa S. Bhat <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions