Searched refs:new_part (Results 1 – 1 of 1) sorted by relevance
847 struct nvram_partition *new_part; in nvram_create_partition() local893 new_part = kzalloc(sizeof(*new_part), GFP_KERNEL); in nvram_create_partition()894 if (!new_part) { in nvram_create_partition()899 new_part->index = free_part->index; in nvram_create_partition()900 new_part->header.signature = sig; in nvram_create_partition()901 new_part->header.length = size; in nvram_create_partition()902 memcpy(new_part->header.name, name, strnlen(name, sizeof(new_part->header.name))); in nvram_create_partition()903 new_part->header.checksum = nvram_checksum(&new_part->header); in nvram_create_partition()905 rc = nvram_write_header(new_part); in nvram_create_partition()908 kfree(new_part); in nvram_create_partition()[all …]