Re: [PATCH V2] cpufreq: fix a NULL pointer dereference triggered by _PPC changed notification

From: Viresh Kumar
Date: Thu Dec 18 2014 - 01:23:30 EST


On 18 December 2014 at 11:50, Ethan Zhao <ethan.zhao@xxxxxxxxxx> wrote:
> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
> index 4473eba..b75735c 100644
> --- a/drivers/cpufreq/cpufreq.c
> +++ b/drivers/cpufreq/cpufreq.c
> @@ -2021,6 +2021,11 @@ static int __cpufreq_governor(struct cpufreq_policy *policy,
> /* Don't start any governor operations if we are entering suspend */
> if (cpufreq_suspended)
> return 0;
> + /* Governor might not be initiated here if _PPC changed notification
> + * happened, check it.
> + */

Its still wrong.

/*
* Governor might not be initiated here if _PPC changed notification
* happened, check it.
*/
--
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/