Lines Matching refs:new
272 struct property *new = kzalloc(sizeof(*new), GFP_KERNEL);
274 if (!new)
277 if (!(new->name = kmalloc(strlen(name) + 1, GFP_KERNEL)))
279 if (!(new->value = kmalloc(length + 1, GFP_KERNEL)))
282 strcpy(new->name, name);
283 memcpy(new->value, value, length);
284 *(((char *)new->value) + length) = 0;
285 new->length = length;
286 new->next = last;
287 return new;
290 kfree(new->name);
291 kfree(new->value);
292 kfree(new);