summaryrefslogtreecommitdiff
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2000-02-16 21:11:33 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2000-02-16 21:11:33 +0000
commit1f6889a1eb5070dfa739f4158cfb33f13b7a462d (patch)
treeffa24ad6f287af901091f289951217e582cb5261 /sys/vm/vm_map.c
parentc2ebb466e57077c7d5851580569936c90ba1e24d (diff)
Notes
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r--sys/vm/vm_map.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 3f5382e1909f..7acaa5118b4d 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -284,7 +284,13 @@ static vm_map_entry_t
vm_map_entry_create(map)
vm_map_t map;
{
- return zalloc((map->system_map || !mapentzone) ? kmapentzone : mapentzone);
+ vm_map_entry_t new_entry;
+
+ new_entry = zalloc((map->system_map || !mapentzone) ?
+ kmapentzone : mapentzone);
+ if (new_entry == NULL)
+ panic("vm_map_entry_create: kernel resources exhausted");
+ return(new_entry);
}
/*