element = kcalloc(1, sizeof(struct port_table_attribute), 
element = kzalloc(sizeof(struct port_table_attribute), 
alloc_group_attrs(ssize_t (*show)(struct ib_port *,				  struct port_attribute *, char *buf),		  int len){	struct attribute **tab_attr;	struct port_table_attribute *element;	int i;	tab_attr = kcalloc(1 + len, sizeof(struct attribute *), GFP_KERNEL);	if (!tab_attr)		return NULL;	for (i = 0; i < len; i++) {		element = kcalloc(1, sizeof(struct port_table_attribute),				  GFP_KERNEL);		if (!element)			goto err;		if (snprintf(element->name, sizeof(element->name),			     "%d", i) >= sizeof(element->name))			goto err;		element->attr.attr.name  = element->name;		element->attr.attr.mode  = S_IRUGO;		element->attr.attr.owner = THIS_MODULE;		element->attr.show       = show;		element->index		 = i;		tab_attr[i] = &element->attr.attr;	}	return tab_attr;err:	while (--i >= 0)		kfree(tab_attr[i]);	kfree(tab_attr);	return NULL;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/82ca76b6b160b6fce46f78c069f87fe1a4dc0778/sysfs.c/clean/drivers/infiniband/core/sysfs.c