diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2016-02-07 13:01:10 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2016-02-07 15:21:36 +0100 |
commit | cc146aeb61efc46bdb157ba87f7fb72e117067cb (patch) | |
tree | 23f19558edec0e5d70d1dc9f194ab169329e8b03 | |
parent | ef62b420194e5cd5c5957a672061c18bcedb4b49 (diff) |
vm: initialize external maps
* vm/vm_external.c (vm_external_create): Initialize allocated maps.
-rw-r--r-- | vm/vm_external.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vm/vm_external.c b/vm/vm_external.c index 7584a2b..3b1a287 100644 --- a/vm/vm_external.c +++ b/vm/vm_external.c @@ -35,6 +35,7 @@ #include <vm/vm_external.h> #include <mach/vm_param.h> #include <kern/assert.h> +#include <string.h> @@ -74,6 +75,7 @@ vm_external_t vm_external_create(vm_offset_t size) (char *) kmem_cache_alloc(&vm_object_large_existence_map_cache); result->existence_size = LARGE_SIZE; } + memset (result->existence_map, 0, result->existence_size); return(result); } |