vm: address-space: fix vm-object and address space not being unlocked when a demand-map fails

This commit is contained in:
2026-04-01 18:26:27 +01:00
parent dd34b1d80f
commit 8595f705af
+2
View File
@@ -1350,6 +1350,8 @@ kern_status_t address_space_demand_map(
#endif #endif
if (!pg) { if (!pg) {
vm_object_unlock(area->vma_object);
address_space_unlock_irqrestore(region, irq_flags);
return KERN_FATAL_ERROR; return KERN_FATAL_ERROR;
} }