]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/params.c
[SCSI] sysfs: add filter function to groups
[linux-2.6-omap-h63xx.git] / kernel / params.c
index 7686417ee00eba070b7d9b5c9dd293f9991199f1..dfef46474e55b70f380568ac5592ae35b2f3baa2 100644 (file)
@@ -472,7 +472,7 @@ param_sysfs_setup(struct module_kobject *mk,
                        sizeof(mp->grp.attrs[0]));
        size[1] = (valid_attrs + 1) * sizeof(mp->grp.attrs[0]);
 
-       mp = kmalloc(size[0] + size[1], GFP_KERNEL);
+       mp = kzalloc(size[0] + size[1], GFP_KERNEL);
        if (!mp)
                return ERR_PTR(-ENOMEM);