On 19 December 2013 05:03, Rafael J. Wysocki <rjw@xxxxxxxxxxxxx> wrote: > + if (cpufreq_driver->setpolicy) { > + unsigned int ret; > + > + /* Use the default policyt if it is valid. */ > + if (!cpufreq_parse_governor(policy->governor->name, &ret, NULL)) > + new_policy.policy = ret; > + } What about this instead as cpufreq_parse_governor isn't supposed to change value of ret in case of errors. > + if (cpufreq_driver->setpolicy) > + cpufreq_parse_governor(policy->governor->name, &new_policy.policy, NULL); -- To unsubscribe from this list: send the line "unsubscribe cpufreq" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html