Skip to content
Snippets Groups Projects
Commit a8c9c672 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

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

parent 7c9b5f75
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment