From cd6fbe68303d292a950281038a3062c1b4e9aa11 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Tue, 24 Nov 2015 14:45:53 +0100 Subject: Fix vm_map_copyout * vm/vm_map.c (vm_map_copyout): Reinitialize copy map red-black tree. --- vm/vm_map.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vm/vm_map.c b/vm/vm_map.c index cded22d..26aa731 100644 --- a/vm/vm_map.c +++ b/vm/vm_map.c @@ -2556,6 +2556,7 @@ kern_return_t vm_map_copyout( */ copy->cpy_hdr.nentries = 0; copy->cpy_hdr.entries_pageable = dst_map->hdr.entries_pageable; + rbtree_init(©->cpy_hdr.tree); vm_map_copy_first_entry(copy) = vm_map_copy_last_entry(copy) = vm_map_copy_to_entry(copy); -- cgit v1.2.3