mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
- Assert that the containing vm object is locked in
vm_page_set_validclean(). (This function reads and modifies the vm page's valid field, which is synchronized by the lock on the containing vm object.)
This commit is contained in:
parent
bbda0368ba
commit
0d42c05ff4
1 changed files with 1 additions and 0 deletions
|
|
@ -1521,6 +1521,7 @@ vm_page_set_validclean(vm_page_t m, int base, int size)
|
|||
int endoff;
|
||||
|
||||
mtx_assert(&vm_page_queue_mtx, MA_OWNED);
|
||||
VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED);
|
||||
if (size == 0) /* handle degenerate case */
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue