summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
Diffstat (limited to 'vm')
-rw-r--r--vm/vm_map.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vm/vm_map.c b/vm/vm_map.c
index 260eb5a..2c8ad60 100644
--- a/vm/vm_map.c
+++ b/vm/vm_map.c
@@ -798,7 +798,7 @@ kern_return_t vm_map_enter(
*/
if (((start + mask) & ~mask) < start)
- return(KERN_NO_SPACE);
+ RETURN(KERN_NO_SPACE);
start = ((start + mask) & ~mask);
end = start + size;
@@ -2146,8 +2146,10 @@ start_pass_1:
* the copy cannot be interrupted.
*/
- if (interruptible && contains_permanent_objects)
+ if (interruptible && contains_permanent_objects) {
+ vm_map_unlock(dst_map);
return(KERN_FAILURE); /* XXX */
+ }
/*
* XXXO If there are no permanent objects in the destination,