mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Lock an update to a vm_object's ref_count.
This commit is contained in:
parent
cda4b241e2
commit
ab7b0ae578
1 changed files with 2 additions and 0 deletions
|
|
@ -605,7 +605,9 @@ retry:
|
|||
* Dereference the reference we just created. This assumes
|
||||
* that the object is associated with the vp.
|
||||
*/
|
||||
VM_OBJECT_LOCK(object);
|
||||
object->ref_count--;
|
||||
VM_OBJECT_UNLOCK(object);
|
||||
vrele(vp);
|
||||
} else {
|
||||
if (object->flags & OBJ_DEAD) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue