From c2a4e94982dc22b2ff3eb85b284839f96f217faf Mon Sep 17 00:00:00 2001 From: kib Date: Mon, 23 Jun 2014 07:03:47 +0000 Subject: [PATCH] Use correct names for the flags. MAP_ENTRY_GROWS_* have the same numerical values as MAP_STACK_GROWS_*, but the former is for entries' eflags, while the later for the cow argument of vm_map_insert(). Submitted by: alc --- sys/vm/vm_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index d8ba33f6a651..9bb9bd10fbc2 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -1215,7 +1215,7 @@ charged: } else if ((prev_entry != &map->header) && (prev_entry->eflags == protoeflags) && - (cow & (MAP_ENTRY_GROWS_DOWN | MAP_ENTRY_GROWS_UP)) == 0 && + (cow & (MAP_STACK_GROWS_DOWN | MAP_STACK_GROWS_UP)) == 0 && (prev_entry->end == start) && (prev_entry->wired_count == 0) && (prev_entry->cred == cred ||