Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151241452
D45578.id139892.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
628 B
Referenced Files
None
Subscribers
None
D45578.id139892.diff
View Options
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -5545,12 +5545,14 @@
if ((new_l2 & ATTR_SW_WIRED) != 0 && pmap != kernel_pmap) {
uwptpg = vm_page_alloc_noobj(VM_ALLOC_WIRED);
if (uwptpg == NULL) {
+ pmap_abort_ptp(pmap, va, l2pg);
return (KERN_RESOURCE_SHORTAGE);
}
uwptpg->pindex = pmap_l2_pindex(va);
if (pmap_insert_pt_page(pmap, uwptpg, true, false)) {
vm_page_unwire_noq(uwptpg);
vm_page_free(uwptpg);
+ pmap_abort_ptp(pmap, va, l2pg);
return (KERN_RESOURCE_SHORTAGE);
}
pmap_resident_count_inc(pmap, 1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 1:48 AM (3 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31065010
Default Alt Text
D45578.id139892.diff (628 B)
Attached To
Mode
D45578: arm64 pmap: Release PTP reference on leaf ptpage allocation failure
Attached
Detach File
Event Timeline
Log In to Comment