From 3025f00ebe3d0a935e89151aa873a59e13eebace Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 1 Nov 2017 20:33:24 -0700 Subject: [PATCH] kernel - Refactor vm_fault and vm_map a bit (3) * Fix bug in vm_map_split() where boject was being released and dropped out of order on a certain condition, causing an assertion. bobject is released properly later so we should be able to simply remove the offending code. --- sys/vm/vm_map.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 618bc42ae9..3d0df3f8da 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -3332,8 +3332,6 @@ vm_map_split(vm_map_entry_t entry, vm_object_t oobject) LIST_INSERT_HEAD(&bobject->shadow_head, nobject, shadow_list); vm_object_clear_flag(bobject, OBJ_ONEMAPPING); /*XXX*/ - vm_object_chain_release(bobject); - vm_object_drop(bobject); vm_object_set_flag(nobject, OBJ_ONSHADOW); } } -- 2.41.0