From: Matt Birkholz Date: Fri, 13 Jul 2012 00:30:21 +0000 (-0700) Subject: microcode: Fix start in mmap_heap_malloc_search for __linux__. X-Git-Tag: release-9.2.0~236 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=308c63783a3c8ec420bd3a5939fe206230306b3b;p=mit-scheme.git microcode: Fix start in mmap_heap_malloc_search for __linux__. The AppArmor hack moved and missed its chance to frob start. --- diff --git a/src/microcode/ux.c b/src/microcode/ux.c index 2c818aa2e..513c008db 100644 --- a/src/microcode/ux.c +++ b/src/microcode/ux.c @@ -806,7 +806,7 @@ mmap_heap_malloc_search (unsigned long request, { char fn [64]; FILE * s; - unsigned long start = min_result; + unsigned long start; /* AppArmor can specify a minimum usable address. In that case we need to detect it and compensate. */ @@ -825,6 +825,7 @@ mmap_heap_malloc_search (unsigned long request, if (s == 0) goto no_address; + start = min_result; while ((start + request) <= max_result) { unsigned long end;