Re: od_set_powersave_bias: NULL pointer dereference

From: Viresh Kumar
Date: Thu Jun 27 2013 - 12:23:22 EST


On 27 June 2013 21:52, Jacob Shin <jacob.shin@xxxxxxx> wrote:
> From 133f670aa1dc450fd37ba39081d046bf238c507b Mon Sep 17 00:00:00 2001
> From: Jacob Shin <jacob.shin@xxxxxxx>
> Date: Thu, 27 Jun 2013 10:44:42 -0500
> Subject: [PATCH 1/1] cpufreq: don't leave stale policy pointer in
> cdbs->cur_policy
>
> Set ->cur_policy to NULL when stopping a governor. Otherwise, the
> ->cur_policy pointer may be stale on systems that
> have_governor_per_policy when a new policy is allocated due to CPU
> hotplug offline/online.
>
> Suggested-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
> Signed-off-by: Jacob Shin <jacob.shin@xxxxxxx>
> ---
> drivers/cpufreq/cpufreq_governor.c | 1 +
> 1 file changed, 1 insertion(+)

Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/