diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/cpufreq/intel_pstate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 5f1cbae36961..f9d561e198ab 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
| @@ -614,6 +614,11 @@ static int intel_pstate_init_cpu(unsigned int cpunum) | |||
| 614 | cpu = all_cpu_data[cpunum]; | 614 | cpu = all_cpu_data[cpunum]; |
| 615 | 615 | ||
| 616 | intel_pstate_get_cpu_pstates(cpu); | 616 | intel_pstate_get_cpu_pstates(cpu); |
| 617 | if (!cpu->pstate.current_pstate) { | ||
| 618 | all_cpu_data[cpunum] = NULL; | ||
| 619 | kfree(cpu); | ||
| 620 | return -ENODATA; | ||
| 621 | } | ||
| 617 | 622 | ||
| 618 | cpu->cpu = cpunum; | 623 | cpu->cpu = cpunum; |
| 619 | 624 | ||
