diff options
Diffstat (limited to 'drivers/cpufreq/longhaul.c')
| -rw-r--r-- | drivers/cpufreq/longhaul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/longhaul.c b/drivers/cpufreq/longhaul.c index 5c440f87ba8a..d00e5d1abd25 100644 --- a/drivers/cpufreq/longhaul.c +++ b/drivers/cpufreq/longhaul.c | |||
| @@ -475,7 +475,7 @@ static int longhaul_get_ranges(void) | |||
| 475 | return -EINVAL; | 475 | return -EINVAL; |
| 476 | } | 476 | } |
| 477 | 477 | ||
| 478 | longhaul_table = kmalloc((numscales + 1) * sizeof(*longhaul_table), | 478 | longhaul_table = kzalloc((numscales + 1) * sizeof(*longhaul_table), |
| 479 | GFP_KERNEL); | 479 | GFP_KERNEL); |
| 480 | if (!longhaul_table) | 480 | if (!longhaul_table) |
| 481 | return -ENOMEM; | 481 | return -ENOMEM; |
