diff options
author | Richard Braun <rbraun@sceen.net> | 2015-11-24 14:45:53 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2015-12-29 02:04:44 +0100 |
commit | cd6fbe68303d292a950281038a3062c1b4e9aa11 (patch) | |
tree | 53cfbcf3b8089333d98d283a7888a873e0791e0b | |
parent | 3107d81adec3a8002828032f860c8e5aa8b98aec (diff) |
Fix vm_map_copyout
* vm/vm_map.c (vm_map_copyout): Reinitialize copy map red-black tree.
-rw-r--r-- | vm/vm_map.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |