diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/params.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/params.c b/kernel/params.c index b4da9505f4d2..67f65ee7211d 100644 --- a/kernel/params.c +++ b/kernel/params.c | |||
@@ -472,7 +472,7 @@ param_sysfs_setup(struct module_kobject *mk, | |||
472 | sizeof(mp->grp.attrs[0])); | 472 | sizeof(mp->grp.attrs[0])); |
473 | size[1] = (valid_attrs + 1) * sizeof(mp->grp.attrs[0]); | 473 | size[1] = (valid_attrs + 1) * sizeof(mp->grp.attrs[0]); |
474 | 474 | ||
475 | mp = kmalloc(size[0] + size[1], GFP_KERNEL); | 475 | mp = kzalloc(size[0] + size[1], GFP_KERNEL); |
476 | if (!mp) | 476 | if (!mp) |
477 | return ERR_PTR(-ENOMEM); | 477 | return ERR_PTR(-ENOMEM); |
478 | 478 | ||