summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-14 00:30:01 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-14 00:30:01 +0200
commitdbdf5dc72d025d88d912434203724e177136576e (patch)
tree957a158dcc97ef934194bc07ad40021447be2ea2 /vm
parent2d0e623802007a66a3af2ed3c93ef83c22586fe6 (diff)
Fix return with lock held
vm/vm_map.c (vm_map_enter): Use RETURN instead of return to unlock the map before returning.
Diffstat (limited to 'vm')
-rw-r--r--vm/vm_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm_map.c b/vm/vm_map.c
index 260eb5a..63438d3 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;