vm: address-space: fix vm-object and address space not being unlocked when a demand-map fails
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user