Do not forget to call pmap_free_l2_bucket() in pmap_remove_pages().

This can fix the pmap-related panics reported on arm.

MFC After:	3 days
This commit is contained in:
Olivier Houchard 2006-12-04 12:55:00 +00:00
parent 5af1711729
commit 8cd2513ee1

View File

@ -2807,6 +2807,7 @@ pmap_remove_pages(pmap_t pmap)
if (TAILQ_EMPTY(&m->md.pv_list))
vm_page_flag_clear(m, PG_WRITEABLE);
pmap_free_pv_entry(pv);
pmap_free_l2_bucket(pmap, l2b, 1);
}
vm_page_unlock_queues();
cpu_idcache_wbinv_all();