mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
In vm_page_alloc_contig(), on vm_page_insert() failure, mark each
freed page as VPO_UNMANAGED. Otherwise vm_pge_free_toq() insists on owning the page lock. Previously, VPO_UNMANAGED was only set up to the last processed page. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
9a2047083f
commit
30a8a5f7a6
1 changed files with 3 additions and 1 deletions
|
|
@ -1944,8 +1944,10 @@ retry:
|
|||
m < &m_ret[npages]; m++) {
|
||||
if ((req & VM_ALLOC_WIRED) != 0)
|
||||
m->wire_count = 0;
|
||||
if (m >= m_tmp)
|
||||
if (m >= m_tmp) {
|
||||
m->object = NULL;
|
||||
m->oflags |= VPO_UNMANAGED;
|
||||
}
|
||||
vm_page_free(m);
|
||||
}
|
||||
return (NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue