diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 34e297f28fc2ad09c212de569a865a7eaf74f2f2..a47e76a62287f7d079cc79a1b44fd1851947b7d8 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -547,8 +547,10 @@ static int devfreq_notifier_call(struct notifier_block *nb, unsigned long type, goto out; devfreq->scaling_max_freq = find_available_max_freq(devfreq); - if (!devfreq->scaling_max_freq) + if (!devfreq->scaling_max_freq) { + devfreq->scaling_max_freq = ULONG_MAX; goto out; + } err = update_devfreq(devfreq);