diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/gx-suspmod.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c b/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c index 65b8fa2b0ee4..92afa3bc84f1 100644 --- a/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c +++ b/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c | |||
@@ -459,10 +459,9 @@ static int __init cpufreq_gx_init(void) | |||
459 | 459 | ||
460 | dprintk("geode suspend modulation available.\n"); | 460 | dprintk("geode suspend modulation available.\n"); |
461 | 461 | ||
462 | params = kmalloc(sizeof(struct gxfreq_params), GFP_KERNEL); | 462 | params = kzalloc(sizeof(struct gxfreq_params), GFP_KERNEL); |
463 | if (params == NULL) | 463 | if (params == NULL) |
464 | return -ENOMEM; | 464 | return -ENOMEM; |
465 | memset(params, 0, sizeof(struct gxfreq_params)); | ||
466 | 465 | ||
467 | params->cs55x0 = gx_pci; | 466 | params->cs55x0 = gx_pci; |
468 | gx_params = params; | 467 | gx_params = params; |