diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2007-10-31 15:38:04 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-23 18:29:18 +0100 |
commit | d4acd722b7bb5f48b9fc3848e8c2a845b100d84f (patch) | |
tree | 24c0ccb9cd13d79b47588d44b27b3f1eb91a0ec7 /kernel | |
parent | [SCSI] add missing transport configure points for target and host (diff) | |
download | linux-d4acd722b7bb5f48b9fc3848e8c2a845b100d84f.tar.xz linux-d4acd722b7bb5f48b9fc3848e8c2a845b100d84f.zip |
[SCSI] sysfs: add filter function to groups
This patch allows the various users of attribute_groups to selectively
allow the appearance of group attributes. The primary consumer of
this will be the transport classes in which we currently have
elaborate attribute selection algorithms to do this same thing.
Acked-by: Greg KH <greg@kroah.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
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 7686417ee00e..dfef46474e55 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -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); |