Exploit r288122 to avoid pointlessly enqueueing a page that is about to be
freed. Submitted by: kmacy Differential Revision: https://reviews.freebsd.org/D1674
This commit is contained in:
parent
b2ce78db72
commit
de91cc41c3
@ -418,7 +418,7 @@ vm_thread_stack_dispose(vm_object_t ksobj, vm_offset_t ks, int pages)
|
||||
if (m == NULL)
|
||||
panic("vm_thread_dispose: kstack already missing?");
|
||||
vm_page_lock(m);
|
||||
vm_page_unwire(m, PQ_INACTIVE);
|
||||
vm_page_unwire(m, PQ_NONE);
|
||||
vm_page_free(m);
|
||||
vm_page_unlock(m);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user