]> git.sur5r.net Git - u-boot/blobdiff - disk/part_efi.c
ARM: am33xx: Always inhibit init/refresh during DDR phy init
[u-boot] / disk / part_efi.c
index fe308d76a9bc15514bb42d2ca946094a9f07a557..0af1e9248d0f867e949c29f2a1e2ab4fc69ab65b 100644 (file)
@@ -439,7 +439,7 @@ int gpt_fill_pte(gpt_header *gpt_h, gpt_entry *gpt_e,
                        gpt_e[i].starting_lba = cpu_to_le64(offset);
                        offset += partitions[i].size;
                }
-               if (offset >= last_usable_lba) {
+               if (offset > (last_usable_lba + 1)) {
                        printf("Partitions layout exceds disk size\n");
                        return -1;
                }