diff options
author | Tom Rini <trini@konsulko.com> | 2023-10-30 16:01:54 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-10-30 16:01:54 -0400 |
commit | cbba1b7766bd93d74e28202c46e69095ac13760b (patch) | |
tree | ba75e840777ea0213e0c97fb72234d1ea4ed7769 /lib/addr_map.c | |
parent | c594b430225c36189a8fee2a710264d0458dc3d6 (diff) | |
parent | 5ed1c55fb4c23dc9f14b9c8d1d687f8c0ee703ac (diff) |
Merge branch '2023-10-30-assorted-general-updates'
- Two Kconfig content fixes, fix some issues reported by Coverity,
resync get_maintainer.pl (two small fixees), update i2c_eeprom, and
fix an off by one in addrmap_set_entry
Diffstat (limited to 'lib/addr_map.c')
-rw-r--r-- | lib/addr_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/addr_map.c b/lib/addr_map.c index 9b3e0a544e..86e932e4b5 100644 --- a/lib/addr_map.c +++ b/lib/addr_map.c @@ -59,7 +59,7 @@ void *addrmap_phys_to_virt(phys_addr_t paddr) void addrmap_set_entry(unsigned long vaddr, phys_addr_t paddr, phys_size_t size, int idx) { - if (idx > CONFIG_SYS_NUM_ADDR_MAP) + if (idx >= CONFIG_SYS_NUM_ADDR_MAP) return; address_map[idx].vaddr = vaddr; |