[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 17/17] Initialize the new map entry when it's a projected buffer
From: |
Guillem Jover |
Subject: |
[PATCH 17/17] Initialize the new map entry when it's a projected buffer |
Date: |
Thu, 25 Aug 2011 15:22:40 +0200 |
* vm/vm_map.c (vm_map_fork): Call vm_map_entry_create for projected_on
buffers too.
---
vm/vm_map.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/vm/vm_map.c b/vm/vm_map.c
index 751e031..ce83403 100644
--- a/vm/vm_map.c
+++ b/vm/vm_map.c
@@ -4157,6 +4157,8 @@ vm_map_t vm_map_fork(old_map)
object->ref_count++;
vm_object_unlock(object);
+ new_entry = vm_map_entry_create(new_map);
+
if (old_entry->projected_on != 0) {
/*
* If entry is projected buffer, clone the
@@ -4171,7 +4173,6 @@ vm_map_t vm_map_fork(old_map)
* Mark both entries as shared.
*/
- new_entry = vm_map_entry_create(new_map);
vm_map_entry_copy(new_entry, old_entry);
old_entry->is_shared = TRUE;
new_entry->is_shared = TRUE;
--
1.7.5.4
- Re: [PATCH 01/17] Add a .gitignore file, (continued)
[PATCH 14/17] Fix initialization from incompatible pointer type, Guillem Jover, 2011/08/25
[PATCH 07/17] Add prototype for log function, Guillem Jover, 2011/08/25
[PATCH 17/17] Initialize the new map entry when it's a projected buffer,
Guillem Jover <=
[PATCH 12/17] Disable unused variables, Guillem Jover, 2011/08/25
[PATCH 15/17] Move cdrom_sleep() definition where it belongs, Guillem Jover, 2011/08/25
[PATCH 11/17] Remove unused variables, Guillem Jover, 2011/08/25