Fix loop counter... was overrunning a table on larger ELF files

This commit is contained in:
Gregory Nutt
2014-09-07 14:42:04 -06:00
parent dcc711f3f2
commit 53bd807186
+1 -1
View File
@@ -191,7 +191,7 @@ static int up_addrenv_create_region(FAR uintptr_t **list,
*/
nmapped = 0;
for (i = 0; i < npages; i++)
for (i = 0; i < npages; i += ENTRIES_PER_L2TABLE)
{
/* Allocate one physical page for the L2 page table */