diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/cbmem/cbmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c index 3a5a428e40..f1de620c59 100644 --- a/util/cbmem/cbmem.c +++ b/util/cbmem/cbmem.c @@ -220,7 +220,7 @@ static int parse_cbtable(u64 address) debug(" Found memory map.\n"); struct lb_memory *memory = (struct lb_memory *)lbr_p; - while ((char *)&memory->map[i] < ((char *)lbtable + while ((char *)&memory->map[i] < ((char *)lbr_p + lbr_p->size)) { if (memory->map[i].type == LB_MEM_TABLE) { debug(" LB_MEM_TABLE found.\n"); |