summaryrefslogtreecommitdiff
path: root/mach-defpager
diff options
context:
space:
mode:
authorMaksym Planeta <mcsim.planeta@gmail.com>2012-04-07 21:25:06 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-04-08 22:19:31 +0200
commit764430b760549865ab45215990b926594e993e87 (patch)
tree20ccf9035db812a360a3cdef120f30921e90b146 /mach-defpager
parent50aa82b6f21867bcad925a2879f8bd5c8773330b (diff)
Prevent repeated freeing of pager's map
* mach-defpager/default_pager.c (pager_truncate): Do not set old_size to PAGEMAP_ENTRIES, to avoid freeing again just below.
Diffstat (limited to 'mach-defpager')
-rw-r--r--mach-defpager/default_pager.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mach-defpager/default_pager.c b/mach-defpager/default_pager.c
index e38dbb2b..cd0f6e30 100644
--- a/mach-defpager/default_pager.c
+++ b/mach-defpager/default_pager.c
@@ -1125,7 +1125,6 @@ pager_truncate(dpager_t pager, vm_size_t new_size) /* in pages */
const dp_map_t mapptr = pager->map[0].indirect;
kfree((char *)pager->map, INDIRECT_PAGEMAP_SIZE(old_size));
pager->map = mapptr;
- old_size = PAGEMAP_ENTRIES;
}
}