From 30dac21d0a0fb2e87b1ae634ae1eca7995d374c4 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 11 Jul 2013 05:15:30 +0000 Subject: [PATCH] Explicitely panic instead of possibly doing undefined things when ptelist KVA is exhausted. Currently this cannot happen, the added panic serves as assert. Discussed with: alc Sponsored by: The FreeBSD Foundation --- sys/i386/i386/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index c1fe3807b318..955645805fc7 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -680,7 +680,7 @@ pmap_ptelist_alloc(vm_offset_t *head) va = *head; if (va == 0) - return (va); /* Out of memory */ + panic("pmap_ptelist_alloc: exhausted ptelist KVA"); pte = vtopte(va); *head = *pte; if (*head & PG_V)