Moved vm_map_create()'s out-of-maps panic to a more appropriate place.

This commit is contained in:
andrew 1993-08-19 03:13:24 +00:00
parent d9d60a264e
commit 4e65827b6c

View File

@ -228,9 +228,9 @@ vm_map_t vm_map_create(pmap, min, max, pageable)
if (kmem_map == NULL) {
result = kmap_free;
kmap_free = (vm_map_t) result->header.next;
if (result == NULL)
panic("vm_map_create: out of maps");
kmap_free = (vm_map_t) result->header.next;
} else
MALLOC(result, vm_map_t, sizeof(struct vm_map),
M_VMMAP, M_WAITOK);