Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102714517
D45577.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
586 B
Referenced Files
None
Subscribers
None
D45577.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D45577: amd64 pmap: Release PTP reference on leaf ptpage allocation failure
Attached
Detach File
Event Timeline
Log In to Comment