aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/params.c b/kernel/params.c
index 7686417ee00e..dfef46474e55 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