diff options
author | dg <dg@FreeBSD.org> | 1995-02-21 12:06:06 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-02-21 12:06:06 +0000 |
commit | 872b32d0f225a9a00ac4b7a06570033d99d0916c (patch) | |
tree | eb7ebe8df2dfe49002b3acdd6fadd16124d2a231 /sys/vm/vm_glue.c | |
parent | f0c34d41d10477b1ce7c5b8834b8cefc27cb8e08 (diff) | |
download | FreeBSD-src-872b32d0f225a9a00ac4b7a06570033d99d0916c.zip FreeBSD-src-872b32d0f225a9a00ac4b7a06570033d99d0916c.tar.gz |
Panic if u_map allocation fails.
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r-- | sys/vm/vm_glue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index dc6f4e8..77dc039 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -59,7 +59,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_glue.c,v 1.15 1995/02/14 06:11:21 phk Exp $ + * $Id: vm_glue.c,v 1.16 1995/02/20 17:26:21 davidg Exp $ */ #include <sys/param.h> @@ -225,6 +225,8 @@ vm_fork(p1, p2, isvfork) /* get a kernel virtual address for the UPAGES for this proc */ up = (struct user *) kmem_alloc_pageable(u_map, UPAGES * NBPG); + if (up == NULL) + panic("vm_fork: u_map allocation failed"); /* and force-map the upages into the kernel pmap */ for (i = 0; i < UPAGES; i++) |