From 764430b760549865ab45215990b926594e993e87 Mon Sep 17 00:00:00 2001 From: Maksym Planeta Date: Sat, 7 Apr 2012 21:25:06 +0300 Subject: 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. --- mach-defpager/default_pager.c | 1 - 1 file changed, 1 deletion(-) (limited to 'mach-defpager') 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; } } -- cgit v1.2.3