Searched refs:new_part (Results 1 – 1 of 1) sorted by relevance
989 struct nvram_partition *new_part; in nvram_create_partition() local1033 new_part = kzalloc(sizeof(*new_part), GFP_KERNEL); in nvram_create_partition()1034 if (!new_part) { in nvram_create_partition()1039 new_part->index = free_part->index; in nvram_create_partition()1040 new_part->header.signature = sig; in nvram_create_partition()1041 new_part->header.length = size; in nvram_create_partition()1042 memcpy(new_part->header.name, name, strnlen(name, sizeof(new_part->header.name))); in nvram_create_partition()1043 new_part->header.checksum = nvram_checksum(&new_part->header); in nvram_create_partition()1045 rc = nvram_write_header(new_part); in nvram_create_partition()1048 kfree(new_part); in nvram_create_partition()[all …]