summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r--sys/vm/vm_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index dc33f00..4e1f037 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -600,12 +600,12 @@ vm_object_terminate(vm_object_t object)
}
vm_page_unlock_queues();
splx(s);
- VM_OBJECT_UNLOCK(object);
/*
* Let the pager know object is dead.
*/
vm_pager_deallocate(object);
+ VM_OBJECT_UNLOCK(object);
/*
* Remove the object from the global object list.
OpenPOWER on IntegriCloud