]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - disk/part_efi.c
ARM: tegra: pull Tegra210 SoC DT from Linux v4.7
[karo-tx-uboot.git] / disk / part_efi.c
index 01f71bee79e2656a295ee1cd3505185efc9c5cf7..8d67c09a43a22669af9e702114dc90f4a0d51fad 100644 (file)
@@ -655,6 +655,10 @@ int gpt_verify_partitions(struct blk_desc *dev_desc,
                      (unsigned long long)partitions[i].size);
 
                if (le64_to_cpu(gpt_part_size) != partitions[i].size) {
+                       /* We do not check the extend partition size */
+                       if ((i == parts - 1) && (partitions[i].size == 0))
+                               continue;
+
                        error("Partition %s size: %llu does not match %llu!\n",
                              efi_str, (unsigned long long)gpt_part_size,
                              (unsigned long long)partitions[i].size);