Message ID | 1489587107-7268-5-git-send-email-patrick.delaunay@st.com |
---|---|
State | Changes Requested |
Delegated to: | Tom Rini |
Headers | show |
diff --git a/disk/part_efi.c b/disk/part_efi.c index a7c5b3a..bc9914a 100644 --- a/disk/part_efi.c +++ b/disk/part_efi.c @@ -159,9 +159,9 @@ static void prepare_backup_gpt_header(gpt_header *gpt_h) uint64_t val; /* recalculate the values for the Backup GPT Header */ - val = le64_to_cpu(gpt_h->my_lba); - gpt_h->my_lba = gpt_h->alternate_lba; - gpt_h->alternate_lba = cpu_to_le64(val); + val = le64_to_cpu(gpt_h->alternate_lba); + gpt_h->alternate_lba = gpt_h->my_lba; + gpt_h->my_lba = cpu_to_le64(val); gpt_h->partition_entry_lba = cpu_to_le64(le64_to_cpu(gpt_h->last_usable_lba) + 1); gpt_h->header_crc32 = 0;