summaryrefslogtreecommitdiff
path: root/common/image-android-dt.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-03-22 19:09:58 -0400
committerTom Rini <trini@konsulko.com>2019-03-22 19:09:58 -0400
commitcfb3e102c4bdf96a41cbd3eeb1d3a9a56c69c46c (patch)
tree5951f299b8b05cb6011deb8522a8b883a5d260e2 /common/image-android-dt.c
parent7b80644e271544848db90fb0407d67b3e3749a8e (diff)
parent2e7365518acdb8fb6e9be332c8a6c57b457188d9 (diff)
downloadu-boot-cfb3e102c4bdf96a41cbd3eeb1d3a9a56c69c46c.tar.gz
Merge branch '2019-03-22-master-imports'
- Don't attempt to write to ext4 volumes with the metadata_csum feature we don't support - Correct how we build dtb files. - Fix regression on SPL_FIT with FIT_IMAGE_TINY - Minor TI platform fixes
Diffstat (limited to 'common/image-android-dt.c')
-rw-r--r--common/image-android-dt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/image-android-dt.c b/common/image-android-dt.c
index c0683ee70f..6916826179 100644
--- a/common/image-android-dt.c
+++ b/common/image-android-dt.c
@@ -53,8 +53,8 @@ bool android_dt_get_fdt_by_index(ulong hdr_addr, u32 index, ulong *addr,
entry_size = fdt32_to_cpu(hdr->dt_entry_size);
unmap_sysmem(hdr);
- if (index > entry_count) {
- printf("Error: index > dt_entry_count (%u > %u)\n", index,
+ if (index >= entry_count) {
+ printf("Error: index >= dt_entry_count (%u >= %u)\n", index,
entry_count);
return false;
}