Page MenuHomeFreeBSD

D45577.diff
No OneTemporary

D45577.diff

diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -7595,10 +7595,13 @@
if ((newpde & PG_W) != 0 && pmap != kernel_pmap) {
uwptpg = pmap_alloc_pt_page(pmap, pmap_pde_pindex(va),
VM_ALLOC_WIRED);
- if (uwptpg == NULL)
+ if (uwptpg == NULL) {
+ pmap_abort_ptp(pmap, va, pdpg);
return (KERN_RESOURCE_SHORTAGE);
+ }
if (pmap_insert_pt_page(pmap, uwptpg, true, false)) {
pmap_free_pt_page(pmap, uwptpg, false);
+ pmap_abort_ptp(pmap, va, pdpg);
return (KERN_RESOURCE_SHORTAGE);
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 6:18 AM (20 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14671642
Default Alt Text
D45577.diff (586 B)

Event Timeline