cpufreq: fix NULL pointer deference at od_set_powersave_bias()
authorJacob Shin <jacob.shin@amd.com>
Tue, 25 Jun 2013 20:42:37 +0000 (22:42 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 25 Jun 2013 20:42:37 +0000 (22:42 +0200)
commitc28375583b6471c1cb833a628ab6afb5b69079d0
tree80255430a54c44c57a39d88cc2d7d030a4b0d8b6
parent9e895ace5d82df8929b16f58e9f515f6d54ab82d
cpufreq: fix NULL pointer deference at od_set_powersave_bias()

When initializing the default powersave_bias value, we need to first
make sure that this policy is running the ondemand governor.

Reported-and-tested-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Jacob Shin <jacob.shin@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq_ondemand.c