mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
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
This commit is contained in:
parent
3fb25770a9
commit
30dac21d0a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253186
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user